Hardcode index 0 on getLineup

This commit is contained in:
memetrollsXD 2022-08-03 04:47:23 +02:00
parent c4a02d7b80
commit 35b2131a05
No known key found for this signature in database
GPG Key ID: 105C2F3417AC32CD

View File

@ -91,6 +91,7 @@ export default class Player {
});
return {
...lineup,
index: 0,
avatarList: avatars.map(x => x.lineup)
}
}
@ -174,6 +175,7 @@ export default class Player {
public async save() {
const db = Database.getInstance();
c.debug(JSON.stringify(this.db, null, 2));
await db.update("players", { _id: this.db._id }, this.db);
}
}