Skip to content

Commit

Permalink
chore: fix bug (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
thezzisu authored Aug 17, 2024
1 parent cc3d92e commit c6cd0df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .yarn/versions/bd6fb3ce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releases:
"@aoi-js/server": patch
4 changes: 2 additions & 2 deletions apps/server/src/routes/contest/participant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const contestParticipantAdminRoutes = defineRoutes(async (s) => {
params: T.Object({
userId: T.UUID()
}),
body: T.Object({
body: T.StrictObject({
tags: T.Optional(T.Array(T.String())),
banned: T.Optional(T.Boolean())
})
Expand All @@ -133,7 +133,7 @@ const contestParticipantAdminRoutes = defineRoutes(async (s) => {
await contestParticipants.updateOne({ contestId: ctx._contestId, userId }, [
{
$set: {
tags: req.body.tags,
...req.body,
updatedAt: { $convert: { input: '$$NOW', to: 'double' } }
}
}
Expand Down

0 comments on commit c6cd0df

Please sign in to comment.