mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 20:08:18 +08:00
marking all results coming from the input rewrite
This commit is contained in:
parent
83422d2f99
commit
614f7fde03
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue