토너먼트 NPC 개방 베팅을 복구하고 장수 DB 저장을 일괄 처리

This commit is contained in:
Hide_D committed 2026-09-12 08:04:48 +00:00
1 parent 3ad230beb3
commit 4dac08b916
9 files changed
+581 -62

No files matched your search

+9 -8
View File
@@ -28,6 +28,14 @@ export class CorruptTournamentProjectionError extends Error {
}
}
const zTournamentBet = z
.object({
generalId: z.number().int(),
targetId: z.number().int(),
amount: z.number(),
})
.passthrough();
const zTournamentState = z
.object({
stage: z.number().int(),
@@ -46,6 +54,7 @@ const zTournamentState = z
bettingCloseTick: z.number().int().safe().optional(),
winnerId: z.number().int().optional(),
bettingSettled: z.boolean().optional(),
npcBettingPlan: z.array(zTournamentBet).optional(),
rewardSettled: z.boolean().optional(),
participantsLockedAt: z.string().optional(),
lastError: z.string().optional(),
@@ -111,14 +120,6 @@ const zTournamentMatch = z
})
.passthrough();
const zTournamentBet = z
.object({
generalId: z.number().int(),
targetId: z.number().int(),
amount: z.number(),
})
.passthrough();
const parseProjection = <T>(raw: string | null, key: string, schema: z.ZodType<T>): T | null => {
if (raw === null) {
return null;