delete type field from contest

parent 18cfebf7
......@@ -8,8 +8,8 @@ const dbUtils = require('db-utils');
module.exports = function (Contest) {
return {
addContest : function(courseId, type, name, info, description, start, finish, meta) {
return dbUtils.dbCreateItem(Contest,{ course: courseId, type: type, name: name, info: info, description: description, start : start, finish : finish, meta : meta});
addContest : function(courseId, name, info, description, start, finish, meta) {
return dbUtils.dbCreateItem(Contest,{ course: courseId, name: name, info: info, description: description, start : start, finish : finish, meta : meta});
},
getContestById : function (contestId) {
return dbUtils.dbFindOne(Contest, {_id: contestId}, [{ path: 'course' }]);
......
......@@ -11,12 +11,6 @@ var ContestSchema = new mongoose.Schema({
required: true
},
type: {
type: String,
default: '',
required: true
},
name: {
type: String,
default: '',
......
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