delete type field

parent e6fb1f24
......@@ -8,8 +8,8 @@ const dbUtils = require('db-utils');
module.exports = function (Task) {
return {
addTask : function(contestId, name, task, comment, type, index, meta) {
return dbUtils.dbCreateItem(Task,{ contest: contestId, name: name, task: task, comment: comment, type : type, index : index, meta : meta});
addTask : function(contestId, name, task, comment, index, meta) {
return dbUtils.dbCreateItem(Task,{ contest: contestId, name: name, task: task, comment: comment, index : index, meta : meta});
},
getTaskById : function (taskId) {
return dbUtils.dbFindOne(Task, {_id: taskId}, [{ path: 'contest' }]);
......
......@@ -27,11 +27,6 @@ var TaskSchema = new mongoose.Schema({
default: '',
required: true
},
type: {
type: String,
default: '',
required: true
},
created: {
type: Date,
default: Date.now,
......
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