marking all results coming from the input rewrite

This commit is contained in:
Jack 2021-09-29 14:21:35 +01:00
parent 83422d2f99
commit 614f7fde03

View file

@ -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,