Friday 24 August 2018

Help. Mongoose save triggers twice and saves my data but also another empty

i use ajax to trigger the on-click and do a post on the url, car.save(function (err) { if (err) { return next(err); } res.send('Product Created successfully') }); but it saves it twice for some reason, i can't figure it out why

Submitted August 25, 2018 at 12:46AM by shiust

No comments:

Post a Comment