0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 05:50:44 -05:00

Fix save() (#1084)

Fixes `save()` as I forgot to update the for loop when changing profiles
into a `map`
This commit is contained in:
Chomp 2025-01-15 19:22:31 +00:00 committed by GitHub
commit d5797b6f93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,8 +71,8 @@ export class SaveServer {
*/ */
public async save(): Promise<void> { public async save(): Promise<void> {
const timer = new Timer(); const timer = new Timer();
for (const sessionID in this.profiles) { for (const [sessionId] of this.profiles) {
await this.saveProfile(sessionID); await this.saveProfile(sessionId);
} }
const profileCount = this.profiles.size; const profileCount = this.profiles.size;
this.logger.debug( this.logger.debug(