Skip to content
Snippets Groups Projects
Commit 41af3a4b authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Fix updatetAt update

parent cc7a9ceb
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
...@@ -139,7 +139,7 @@ simulationApp.put('/:id', passport.authenticate('bearer', { session: false }), ( ...@@ -139,7 +139,7 @@ simulationApp.put('/:id', passport.authenticate('bearer', { session: false }), (
simulation.content = req.body.content || simulation.content; simulation.content = req.body.content || simulation.content;
simulation.name = req.body.name || simulation.name; simulation.name = req.body.name || simulation.name;
simulation.updatedAt = Date.now; simulation.updatedAt = Date.now();
simulation.save((err) => { simulation.save((err) => {
if(err) { if(err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment