summary refs log tree commit diff
path: root/src/api/routes
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-03 22:58:29 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-03 22:58:29 +1100
commit9710d745419447cc0e0e4ecc5d05cf722e04db3e (patch)
treecbc89fb8e02a813e95920473b06ab6fa6b3f9d8e /src/api/routes
parentAwait some rabbitmq methods, don't reset some config values on start (diff)
downloadserver-9710d745419447cc0e0e4ecc5d05cf722e04db3e.tar.xz
Fix prune
Diffstat (limited to 'src/api/routes')
-rw-r--r--src/api/routes/guilds/#guild_id/prune.ts2
1 files changed, 1 insertions, 1 deletions
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.