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

Fix simualtion update

parent 78559adf
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -137,8 +137,8 @@ simulationApp.put('/:id', passport.authenticate('bearer', { session: false }), (
return next({err: { msg: 'Simulation not found'}});
}
simulation.content = req.body.content | simulation.content;
simulation.name = req.body.name | simulation.name;
simulation.content = req.body.content || simulation.content;
simulation.name = req.body.name || simulation.name;
simulation.save((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