From 9710d745419447cc0e0e4ecc5d05cf722e04db3e Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 3 Dec 2022 22:58:29 +1100 Subject: [PATCH] Fix prune --- src/api/routes/guilds/#guild_id/prune.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/guilds/#guild_id/prune.ts b/src/api/routes/guilds/#guild_id/prune.ts index d11244b1..8089ad84 100644 --- a/src/api/routes/guilds/#guild_id/prune.ts +++ b/src/api/routes/guilds/#guild_id/prune.ts @@ -27,12 +27,12 @@ export const inactiveMembers = async ( last_message_id: LessThan(minId.toString()), }, { + guild_id, last_message_id: IsNull(), }, ], relations: ["roles"], }); - console.log(members); if (!members.length) return []; //I'm sure I can do this in the above db query ( and it would probably be better to do so ), but oh well.