hidden contest

parent dd2fa43f
...@@ -25,6 +25,9 @@ module.exports = function (Contest) { ...@@ -25,6 +25,9 @@ module.exports = function (Contest) {
}, },
setExam : function (contestId, exam) { setExam : function (contestId, exam) {
return dbUtils.dbFindOneAndUpdate(Contest,{_id : contestId},{ 'meta.exam' : exam}); return dbUtils.dbFindOneAndUpdate(Contest,{_id : contestId},{ 'meta.exam' : exam});
},
setHidden : function (contestId, hidden) {
return dbUtils.dbFindOneAndUpdate(Contest,{_id : contestId},{ 'meta.hidden' : hidden});
} }
}; };
}; };
{ {
"name": "mirera-db", "name": "mirera-db",
"version": "1.5.3", "version": "1.5.4",
"description": "DB utils for mirera program testing server", "description": "DB utils for mirera program testing server",
"main": "index.js", "main": "index.js",
"scripts": { "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