Skip to content

Commit fd6e49e

Browse files
committed
Fix
1 parent 587c38f commit fd6e49e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gameserver/event-handler/live-match-update.handler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export class LiveMatchUpdateHandler
3535
session.duration = event.duration;
3636
session.url = event.server;
3737

38-
await em.save(GameSessionPlayerEntity, session);
39-
session.players.forEach((plr) => {
38+
await em.save(GameServerSessionEntity, session);
39+
session.players.map((plr) => {
4040
const matchingPlayer = event.heroes.find(
4141
(hero) => hero.steam_id === plr.steamId,
4242
);

src/gameserver/model/game-session-player.entity.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export class GameSessionPlayerEntity {
3030
@Column({ name: "abandoned", default: false })
3131
abandoned: boolean;
3232

33-
3433
constructor(steamId: string, matchId: number, partyId: string, team: DotaTeam, connection: DotaConnectionState, abandoned: boolean = false) {
3534
this.steamId = steamId;
3635
this.matchId = matchId;
@@ -39,4 +38,5 @@ export class GameSessionPlayerEntity {
3938
this.connection = connection;
4039
this.abandoned = abandoned;
4140
}
41+
4242
}

0 commit comments

Comments
 (0)