Hardcode index 0 on getLineup
This commit is contained in:
parent
c4a02d7b80
commit
35b2131a05
@ -91,6 +91,7 @@ export default class Player {
|
|||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
...lineup,
|
...lineup,
|
||||||
|
index: 0,
|
||||||
avatarList: avatars.map(x => x.lineup)
|
avatarList: avatars.map(x => x.lineup)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -174,6 +175,7 @@ export default class Player {
|
|||||||
|
|
||||||
public async save() {
|
public async save() {
|
||||||
const db = Database.getInstance();
|
const db = Database.getInstance();
|
||||||
|
c.debug(JSON.stringify(this.db, null, 2));
|
||||||
await db.update("players", { _id: this.db._id }, this.db);
|
await db.update("players", { _id: this.db._id }, this.db);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user