More bugs, some updates where not using set
This commit is contained in:
@@ -40,6 +40,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
await db.collection("stats").updateOne(
|
||||
{ id: (req.body as Body).id },
|
||||
{
|
||||
$set: {
|
||||
id: (req.body as Body).id,
|
||||
solutions,
|
||||
score: {
|
||||
@@ -48,6 +49,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
missing: 0,
|
||||
},
|
||||
isDisabled: false,
|
||||
}
|
||||
},
|
||||
{ upsert: true },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user