Added external tester filed to task

parent 0fedf4ab
......@@ -73,6 +73,9 @@ const TaskSchema = new mongoose.Schema({
type: mongoose.Schema.Types.ObjectId,
ref: 'CustomTester'
},
externalTester: {
type: String
},
inputTestProgram: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Program'
......@@ -261,4 +264,4 @@ module.exports.removeTest = (taskId, testIndex) => {
.then(() => {
return Task.findOneAndUpdate({_id : taskId}, {$pull : {"tests" : null}});
});
};
\ No newline at end of file
};
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