Skip to content

Commit 55eb203

Browse files
committed
fix(bot): nvm i lied, /untracked is now done
1 parent bcd5c6b commit 55eb203

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/db/discord.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,17 +294,17 @@ export async function discordRemoveGuildTrackingChannel(
294294
.delete(dbGuildYouTubeSubscriptionsTable)
295295
.where(
296296
eq(
297-
dbGuildYouTubeSubscriptionsTable.youtubeChannelId,
298-
platformTrackingId,
297+
dbGuildYouTubeSubscriptionsTable.id,
298+
Number(platformTrackingId),
299299
),
300300
);
301301
} else if (platform === Platform.Twitch) {
302302
await db
303303
.delete(dbGuildTwitchSubscriptionsTable)
304304
.where(
305305
eq(
306-
dbGuildTwitchSubscriptionsTable.twitchChannelId,
307-
platformTrackingId,
306+
dbGuildTwitchSubscriptionsTable.id,
307+
Number(platformTrackingId),
308308
),
309309
);
310310
} else {

0 commit comments

Comments
 (0)