This commit is contained in:
Miodec 2022-01-31 15:36:22 +01:00
parent 10a5633e25
commit 1692679951

View file

@ -36,7 +36,7 @@ class ResultDAO {
if (!userTagIds.includes(tagId)) validTags = false;
});
if (!validTags)
throw new MonkeyError(400, "One of the tag id's is not vaild");
throw new MonkeyError(400, "One of the tag id's is not valid");
return await mongoDB()
.collection("results")
.updateOne({ _id: ObjectID(resultid), uid }, { $set: { tags } });