Skip to content

Commit

Permalink
Merge pull request #342 from boostcampwm-2024/dev-be
Browse files Browse the repository at this point in the history
[BE] Dev be -> release
  • Loading branch information
NewCodes7 authored Dec 25, 2024
2 parents 1960026 + 45354c1 commit 2c56075
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BE/src/game/redis/subscribers/player.subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ export class PlayerSubscriber extends RedisSubscriber {
const gameId = await this.redis.hget(playerKey, 'gameId');
const changes = await this.redis.get(`${playerKey}:Changes`);

if (!this.positionUpdatesMetrics.has(gameId)) {
this.positionUpdatesMetrics.set(gameId, []); // ๋นˆ ๋ฐฐ์—ด๋กœ ์ดˆ๊ธฐํ™”
if (changes === 'Position') {
if (!this.positionUpdatesMetrics.has(gameId)) {
this.positionUpdatesMetrics.set(gameId, []); // ๋นˆ ๋ฐฐ์—ด๋กœ ์ดˆ๊ธฐํ™”
}
this.positionUpdatesMetrics.get(gameId).push(startedAt);
}
this.positionUpdatesMetrics.get(gameId).push(startedAt);

await this.handlePlayerChanges(changes, playerId, server);
});
Expand Down

0 comments on commit 2c56075

Please sign in to comment.