Skip to content

Commit

Permalink
Fix switchbind not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Dec 13, 2024
1 parent b7208b2 commit 2a2d360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/utils/elainaDb/UserBind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ export class UserBind extends Manager implements DatabaseUserBind {
);
}

this.discordid = to;

await DatabaseManager.aliceDb.collections.nameChange.updateOne(
{ discordid: this.discordid },
{ $set: { discordid: to } },
Expand Down Expand Up @@ -301,6 +299,8 @@ export class UserBind extends Manager implements DatabaseUserBind {
{ $set: { discordid: to } },
);

this.discordid = to;

return DatabaseManager.aliceDb.collections.playerInfo.updateOne(
{ uid: uid },
{ $set: { discordid: to } },
Expand Down

0 comments on commit 2a2d360

Please sign in to comment.