From 614f7fde031b285790870f5d7cf1a61bbc343f48 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 29 Sep 2021 14:21:35 +0100 Subject: [PATCH] marking all results coming from the input rewrite --- backend/dao/result.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/dao/result.js b/backend/dao/result.js index 6e94fb320..caa7cb626 100644 --- a/backend/dao/result.js +++ b/backend/dao/result.js @@ -13,6 +13,7 @@ class ResultDAO { } if (!user) throw new MonkeyError(404, "User not found", "add result"); if (result.uid === undefined) result.uid = uid; + result.ir = true; let res = await mongoDB().collection("results").insertOne(result); return { insertedId: res.insertedId,