From c952f727328e3e01141a6bd47ec08743808ad11a Mon Sep 17 00:00:00 2001 From: Rian8337 <52914632+Rian8337@users.noreply.github.com> Date: Wed, 18 Sep 2024 06:03:02 +0700 Subject: [PATCH] Fix new account bind not inserting alternate account to account transfer --- .../userbind/subcommands/userbind-uid.ts | 9 ++------- .../userbind/subcommands/userbind-username.ts | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-uid.ts b/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-uid.ts index 89604a347..d5e8459ef 100644 --- a/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-uid.ts +++ b/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-uid.ts @@ -129,13 +129,8 @@ export const run: SlashSubcommand["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 }, ); diff --git a/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-username.ts b/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-username.ts index da11656f6..aa55fb75e 100644 --- a/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-username.ts +++ b/src/interactions/commands/osu! and osu!droid/userbind/subcommands/userbind-username.ts @@ -141,13 +141,8 @@ export const run: SlashSubcommand["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 }, );