fix stale act names in room-service.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 17:54:18 +01:00
parent 4516d3743b
commit 6f1a63e4c9

View File

@@ -17,14 +17,14 @@ export class RoomService {
.values({
id: room.id,
code: room.code,
currentAct: room.currentAct as "lobby" | "act1" | "act2" | "act3" | "ended",
currentAct: room.currentAct as "lobby" | "pre-show" | "live-event" | "scoring" | "ended",
hostSessionId: room.hostSessionId,
expiresAt: room.expiresAt,
})
.onConflictDoUpdate({
target: rooms.id,
set: {
currentAct: room.currentAct as "lobby" | "act1" | "act2" | "act3" | "ended",
currentAct: room.currentAct as "lobby" | "pre-show" | "live-event" | "scoring" | "ended",
},
})
}
@@ -56,7 +56,7 @@ export class RoomService {
async updateRoomAct(roomId: string, act: string) {
await this.db
.update(rooms)
.set({ currentAct: act as "lobby" | "act1" | "act2" | "act3" | "ended" })
.set({ currentAct: act as "lobby" | "pre-show" | "live-event" | "scoring" | "ended" })
.where(eq(rooms.id, roomId))
}