diff --git a/project/src/servers/SaveServer.ts b/project/src/servers/SaveServer.ts index b6364bad..9c5d5b0f 100644 --- a/project/src/servers/SaveServer.ts +++ b/project/src/servers/SaveServer.ts @@ -71,8 +71,8 @@ export class SaveServer { */ public async save(): Promise { const timer = new Timer(); - for (const sessionID in this.profiles) { - await this.saveProfile(sessionID); + for (const [sessionId] of this.profiles) { + await this.saveProfile(sessionId); } const profileCount = this.profiles.size; this.logger.debug(