Skip to content

Commit c0facdb

Browse files
committed
chore: add version to log
1 parent eb20f7b commit c0facdb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

backend/src/api/controllers/result.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export async function reportCompletedEventMismatch(
199199
difficulty,
200200
duration,
201201
funboxes,
202+
version,
202203
} = req.body;
203204
// Logger.warning(
204205
// `Completed event mismatch for uid ${uid}: ${notMatching.join(", ")}`,
@@ -217,6 +218,7 @@ export async function reportCompletedEventMismatch(
217218
difficulty,
218219
duration,
219220
funboxes,
221+
version,
220222
},
221223
uid,
222224
);

packages/contracts/src/results.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const ReportCompletedEventMismatchRequestSchema = z.object({
7575
difficulty: DifficultySchema.optional(),
7676
duration: z.number().max(200).optional(),
7777
funboxes: z.string().max(100).optional(),
78-
version: z.number(),
78+
version: z.literal(1),
7979
// ce: z.record(z.unknown()),
8080
// ce2: z.record(z.unknown()),
8181
});

0 commit comments

Comments
 (0)