Skip to content

Commit

Permalink
Fix opponent data overwriting on update
Browse files Browse the repository at this point in the history
  • Loading branch information
Drarig29 committed Mar 27, 2022
1 parent f018238 commit be31105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brackets-memory-db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class InMemoryDatabase implements CrudInterface {
for (const key in value) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
existing[key] = value[key];
Object.assign(existing[key], value[key]);
}
this.data[table][v.id] = existing;
});
Expand Down

0 comments on commit be31105

Please sign in to comment.