Skip to content

Commit

Permalink
Merge pull request #287 from boostcampwm-2024/dev-be
Browse files Browse the repository at this point in the history
Dev be to release
  • Loading branch information
DongHoonYu96 authored Nov 28, 2024
2 parents 9ec6e98 + 58a328a commit 9a95baa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ "release" ]

env:
NODE_ENV: test
NODE_ENV: production
DB_HOST_TEST: localhost
DB_PORT_TEST: 3306
DB_PASSWD_TEST: test
Expand Down Expand Up @@ -55,9 +55,9 @@ jobs:
run: |
echo '${{ secrets.ENV }}' > .env
# - name: BE ν…ŒμŠ€νŠΈ μ½”λ“œ μ‹€ν–‰ (unit test)
# working-directory: ./BE
# run: npm run test
# - name: BE ν…ŒμŠ€νŠΈ μ½”λ“œ μ‹€ν–‰ (unit test)
# working-directory: ./BE
# run: npm run test

# - name: BE ν…ŒμŠ€νŠΈ μ½”λ“œ μ‹€ν–‰2 (integration test)
# working-directory: ./BE
Expand Down
9 changes: 6 additions & 3 deletions BE/src/game/game.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ import { ExceptionMessage } from '../common/constants/exception-message';
@UseInterceptors(GameActivityInterceptor)
@UseFilters(new WsExceptionFilter())
@WebSocketGateway({
// cors: {
// origin: ['*,', 'https://admin.socket.io'], //이러면 λ°°ν¬μ—μ„œ cors였λ₯˜ 생김
// credentials: true
// },
cors: {
origin: ['*,', 'https://admin.socket.io'],
credentials: true
origin: '*' //이러면 λ°°ν¬μ—μ„œ admin ui μ ‘κ·Ό μ•ˆλ¨
},
namespace: '/game'
})
Expand Down Expand Up @@ -138,7 +141,7 @@ export class GameGateway {
@SubscribeMessage(SocketEvents.KICK_ROOM)
@UsePipes(new GameValidationPipe(SocketEvents.KICK_ROOM))
async handleKickRoom(@MessageBody() kickRoomDto: KickRoomDto, @ConnectedSocket() client: Socket) {
await this.gameRoomService.kickRoom(kickRoomDto, client.id);
await this.gameRoomService.kickRoom(kickRoomDto, client.data.playerId);
}

afterInit(nameSpace: Namespace) {
Expand Down
2 changes: 1 addition & 1 deletion BE/src/game/service/game.room.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class GameRoomService {

await this.redis.set(`${playerKey}:Changes`, 'Join');
await this.redis.hset(playerKey, {
playerName: 'λ‹‰λ„€μž„ μ„€μ • 이전',
playerName: '', //μ΄λž˜μ•Ό ν”„λ‘ νŠΈμ—μ„œ λͺ¨λ‹¬μ„ λ„μ›Œμ£ΌλŠ” 쑰건
positionX: positionX.toString(),
positionY: positionY.toString(),
disconnected: '0',
Expand Down

0 comments on commit 9a95baa

Please sign in to comment.