add exams contest

parent 11e61f4b
......@@ -22,6 +22,9 @@ module.exports = function (Contest) {
},
removeContestById : function (contestId) {
return dbUtils.dbRemoveItem(Contest, {_id: contestId});
},
setExam : function (contestId, exam) {
return dbUtils.dbFindOneAndUpdate(Contest,{_id : contestId},{ 'meta.exam' : exam});
}
};
};
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