Skip to content

Commit

Permalink
Fix new account bind not inserting alternate account to account transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Sep 17, 2024
1 parent 360fa8b commit c952f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,8 @@ export const run: SlashSubcommand<true>["run"] = async (_, interaction) => {
discordId: interaction.user.id,
},
{
$push: {
transferList: uid,
},
$setOnInsert: {
transferUid: userBindInfo.uid,
transferList: userBindInfo.previous_bind,
},
$push: { transferList: uid },
$setOnInsert: { transferUid: userBindInfo.uid },
},
{ upsert: true },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,8 @@ export const run: SlashSubcommand<true>["run"] = async (_, interaction) => {
discordId: interaction.user.id,
},
{
$push: {
transferList: uid,
},
$setOnInsert: {
transferUid: userBindInfo.uid,
transferList: userBindInfo.previous_bind,
},
$push: { transferList: uid },
$setOnInsert: { transferUid: userBindInfo.uid },
},
{ upsert: true },
);
Expand Down

0 comments on commit c952f72

Please sign in to comment.