fix name for db method

parent fa2a771a
......@@ -14,7 +14,7 @@ module.exports = function (Contest) {
getContestById : function (contestId) {
return dbUtils.dbFindOne(Contest, {_id: contestId}, [{ path: 'course' }]);
},
getContestByCourse : function (courseId) {
getContestsByCourse : function (courseId) {
return dbUtils.dbFind(Contest, {course: courseId}, [{ path: 'course' }]);
},
removeContestById : function (contestId) {
......
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