From 99a1ebb1dd65c6659d5fddca1d5487d2496d8a17 Mon Sep 17 00:00:00 2001 From: Sebastian Webster Date: Sat, 16 Sep 2023 08:56:26 +1200 Subject: [PATCH] Fixed bug --- controllers/Temp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/Temp.js b/controllers/Temp.js index 164a4974..ea6ddb42 100644 --- a/controllers/Temp.js +++ b/controllers/Temp.js @@ -1062,7 +1062,7 @@ class TempController { return resolve(HTTPWTHandler.serverError('An error occurred while removing existing vote. Please try again.')) }) } else { - Poll.findOneAndUpdate({_id: {$eq: {$eq: pollId}}}, { $push: { [optionSelected] : userId }}).then(function(){ + Poll.findOneAndUpdate({_id: {$eq: pollId}}, { $push: { [optionSelected] : userId }}).then(function(){ return resolve(HTTPWTHandler.OK('Vote successful', {lastVote: "None"})) }) .catch(err => {