Skip to content

Commit

Permalink
Revert "update deliverables grading #106"
Browse files Browse the repository at this point in the history
This reverts commit 205f84a.
  • Loading branch information
Mark Fejes committed Sep 24, 2018
1 parent 205f84a commit 75d9556
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions endpoints/deliverables/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ module.exports = async (req, res) => {
}

const { data } = req.body;

if (data.attributes.grade === null || data.attributes.grade < 1 || data.attributes.grade > 5) {
throw new Error('Please provide proper grade (1-5)');
}

const db = getDB();
const deliverable = await db.Deliverables.findById(reqId);
checkIfExist(deliverable);
Expand Down

0 comments on commit 75d9556

Please sign in to comment.