all repos — stealth-developers @ b407bb1efbde3f4d5006a35ccea44d93d2480d89

fix: exclude users where cat_points is undefined or null
willow hai@wlo.moe
Wed, 16 Jul 2025 18:52:17 +0100
commit

b407bb1efbde3f4d5006a35ccea44d93d2480d89

parent

1ff885e3d2e21f89409557cf088cc7835e06da48

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/interactions/commands/catlb.tssrc/interactions/commands/catlb.ts

@@ -96,7 +96,10 @@ });

return; } - const allUsers = await UserModel.find({ guild_id: interaction.guild.id }) + const allUsers = await UserModel.find({ + guild_id: interaction.guildId, + cat_points: { $exists: true, $ne: null }, + }) .sort({ cat_points: -1, user_id: 1 }) .select("user_id cat_points") .lean();