Corrected activating of task

parent 30b9de45
......@@ -505,7 +505,7 @@ module.exports.removeManyForContest = (contest, ids) => {
};
module.exports.activate = id => {
return Task.findOneAndUpdate({_id: id}, {status: defines.OBJECT_STATUS.LOCKED });
return Task.findOneAndUpdate({_id: id}, {status: defines.OBJECT_STATUS.ACTIVE });
};
module.exports.lock = id => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment