fix stale act names in room-service.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user