add getting task for testing task

parent 001fedfa
......@@ -25,6 +25,9 @@ module.exports = function (Task) {
},
updateTaskMeta : function (taskId, meta) {
return dbUtils.dbFindOneAndUpdate(Task, {_id: taskId}, {meta : meta});
},
getTaskForTestingTask : function (testingTaskId) {
return dbUtils.dbFindOne(Task, { 'meta.testingTask' : testingTaskId});
}
};
};
{
"name": "mirera-db",
"version": "1.5.2",
"version": "1.5.3",
"description": "DB utils for mirera program testing server",
"main": "index.js",
"scripts": {
......
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