From 35b2131a05db19c0026ef33e76344915430db565 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Wed, 3 Aug 2022 04:47:23 +0200 Subject: [PATCH] Hardcode index 0 on getLineup --- src/db/Player.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db/Player.ts b/src/db/Player.ts index 564da4e..f35cd8a 100644 --- a/src/db/Player.ts +++ b/src/db/Player.ts @@ -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); } } \ No newline at end of file