Skip to content

Commit 16e2c2b

Browse files
committed
Fix again
1 parent a1072f1 commit 16e2c2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rest/info/info.controller.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ export class InfoController {
5757
@Get("current_online")
5858
@CacheTTL(10)
5959
public async getCurrentOnline(): Promise<number> {
60-
const allSessions = await this.gameServerSessionModelRepository.find();
60+
const allSessions = await this.gameServerSessionModelRepository.find({
61+
relations: ['players']
62+
});
6163
return allSessions.reduce((a, b) => a + b.players.length, 0);
6264
}
6365
}

0 commit comments

Comments
 (0)