From 75d9556f0c88b3a39295fed63ad2a31e19dbe542 Mon Sep 17 00:00:00 2001 From: Mark Fejes Date: Mon, 24 Sep 2018 23:24:10 +0200 Subject: [PATCH] Revert "update deliverables grading #106" This reverts commit 205f84a5c51dc6aab896dd08c397cf27e8cf5acb. --- endpoints/deliverables/update.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/endpoints/deliverables/update.js b/endpoints/deliverables/update.js index adf914b..09eb8bd 100644 --- a/endpoints/deliverables/update.js +++ b/endpoints/deliverables/update.js @@ -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);