1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 19:52:36 +01:00

Fix prune

This commit is contained in:
Madeline 2022-12-03 22:58:29 +11:00
parent 242eba0e06
commit cf95510eb9
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -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.