Commit 20913788 authored by Antony Orlovsky's avatar Antony Orlovsky

Merge branch 'develop' into 'develop'

Corrected activating tests for task

See merge request !2
parents 7d3d7279 fd3d28b3
......@@ -171,7 +171,7 @@ module.exports.activate = id => {
};
module.exports.activateForTask = task => {
return Test.findOneAndUpdate({task}, [{$set: {status: defines.OBJECT_STATUS.ACTIVE}}, {$unset: ["lock"]}]);
return Test.updateMany({task, status: defines.OBJECT_STATUS.LOCKED}, [{$set: {status: defines.OBJECT_STATUS.ACTIVE}}, {$unset: ["lock"]}]);
};
module.exports.erase = 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