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:
commit
d5797b6f93
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user