Skip to content

Commit

Permalink
Fix conflicting update path for account transfer list
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Aug 19, 2024
1 parent 3626ff2 commit d5e3ff6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/database/utils/elainaDb/UserBind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,6 @@ export class UserBind extends Manager {
$set: { discordId: to },
$push: { transferList: uid },
$setOnInsert: {
transferList: otherPreviousBind,
// Take the smallest uid as transfer target.
transferUid: Math.min(...otherPreviousBind),
},
Expand Down Expand Up @@ -1139,7 +1138,6 @@ export class UserBind extends Manager {
{
$push: { transferList: uid },
$setOnInsert: {
transferList: otherPreviousBind,
// Take the smallest uid as transfer target.
transferUid: Math.min(...otherPreviousBind),
},
Expand Down

0 comments on commit d5e3ff6

Please sign in to comment.