Commit dc22bb8d authored by Antony Orlovsky's avatar Antony Orlovsky

Merge branch 'develop' into 'develop'

Updated solution api

See merge request !3
parents 20913788 6c2f706e
......@@ -67,6 +67,10 @@ module.exports.removeMany = ids => {
return Solution.remove({_id: {$in: ids}});
};
module.exports.update = (id, update) => {
return Solution.findOneAndUpdate({_id: id}, update);
};
module.exports.save = solution => {
return solution.save()
};
......@@ -158,3 +162,7 @@ module.exports.setStatus = (id, status) => {
module.exports.setTestingResult = (id, testingResult) => {
return Solution.findOneAndUpdate({_id: id}, {testingResult});
};
module.exports.setPlagiarism = (id, plagiarism) => {
return Solution.findOneAndUpdate({_id: id}, {plagiarism});
};
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