Commit d862ccfe authored by Antony Orlovsky's avatar Antony Orlovsky

Updated test query for task

parent 1b24714b
......@@ -100,10 +100,10 @@ module.exports.getForContest = contest => {
}).sort({index: 1});
};
module.exports.getForTask = task => {
module.exports.getForTaskAndTypes = (task, types) => {
return Test.find({
task,
type: defines.TEST_TYPES.COMMON,
type: {$in: types},
status: {$lte: defines.OBJECT_STATUS.LOCKED }
}).sort({index: 1});
};
......
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