From 29aec08856adcbbe7e3c928dd37899c57f9c7e45 Mon Sep 17 00:00:00 2001 From: Ahmed Sabbour <103856+sabbour@users.noreply.github.com> Date: Wed, 9 Oct 2019 16:15:27 -0700 Subject: [PATCH] Fixed bug --- routes/mongo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/mongo.js b/routes/mongo.js index 38893b2..4d5285f 100755 --- a/routes/mongo.js +++ b/routes/mongo.js @@ -108,7 +108,7 @@ router.post("/rate", function(req, res, next) { raterIp: ip, itemRated: input.ratings[i].id }); - console.dir('Saving rating' + rating); + console.dir('Saving rating' + rate); rate.save().then(function(rate) { ratings.push(rate); });