controllers/tasks.js computes isNewProgress0 incorrectly because !!req.body.percentCompleted !== undefined is always true. Replace with req.body.percentCompleted !== undefined. File & line: controllers/tasks.js line 378