diff --git a/src/socket/socket.gateway.ts b/src/socket/socket.gateway.ts index 2dbddf0..c5c5c9c 100644 --- a/src/socket/socket.gateway.ts +++ b/src/socket/socket.gateway.ts @@ -728,11 +728,12 @@ export class SocketGateway @SubscribeMessage('start') async handleStart(@MessageBody() roomId: string) { try { - const roomInfo = await this.socketService.setStart(roomId, true); + this.roomInfo[roomId] = await this.socketService.setStart(roomId, true); this.game[roomId].users = []; - this.server - .to(roomId) - .emit('start', { roomInfo, game: this.game[roomId] }); + this.server.to(roomId).emit('start', { + roomInfo: this.roomInfo[roomId], + game: this.game[roomId], + }); } catch (error) { this.logger.error(`Start game error - Room: ${roomId}`, error.stack); this.server diff --git a/src/wakgames/wakgames.service.ts b/src/wakgames/wakgames.service.ts index bacd53d..dd81b5b 100644 --- a/src/wakgames/wakgames.service.ts +++ b/src/wakgames/wakgames.service.ts @@ -131,7 +131,13 @@ export class WakgamesService extends WakGames { private readonly typeHandlers = new Map string[]>( [ - ['WOO', () => ['WOO-1']], + [ + 'WOO', + (word) => [ + 'WOO-1', + ...(word.id === '신세계의신이되는거다' ? ['WOO-2'] : []), + ], + ], ['INE', (word) => ['INE-1', ...(word.id === '오야' ? ['INE-2'] : [])]], [ 'JINGBURGER', @@ -164,7 +170,7 @@ export class WakgamesService extends WakGames { [ 'GOMEM', (word) => [ - ...(word.meta?.tag.includes('고멤') ? ['GOM-1'] : []), + ...(word.meta?.tag.includes('클래식') ? ['GOM-1'] : []), ...(word.meta?.tag.includes('아카데미') ? ['GOM-2'] : []), ], ],