diff --git a/server/routes/api-users.js b/server/routes/api-users.js index 6264c43..100709a 100644 --- a/server/routes/api-users.js +++ b/server/routes/api-users.js @@ -410,7 +410,7 @@ router.post('/:userId/provisions/:id/startvms', passport.ensureAuthenticatedAndI //Re-enable DivvyTags according to schedule if ( provision.schedule ) { - schedule = await db.schedule.update(provision.schedule._id, {"isStartupTimeEnable": true}); + let schedule = await db.schedule.update(provision.schedule._id, {"isStartupTimeEnable": true}); console.log("Re-enabling DivvyTags according to schedule"); var tagsEdit = { "24x7": schedule.is24x7? " " : false,