From 85448f9616259fe0865b3367d082604496650b2c Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 23 Feb 2023 00:29:09 +0200 Subject: [PATCH] bugfix to history --- src/structure/client/wrappers/UserWrapper.js | 1 - src/structure/components/commands/moderation/History.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/structure/client/wrappers/UserWrapper.js b/src/structure/client/wrappers/UserWrapper.js index 8bdf27f..79b7ecd 100644 --- a/src/structure/client/wrappers/UserWrapper.js +++ b/src/structure/client/wrappers/UserWrapper.js @@ -48,7 +48,6 @@ class UserWrapper { let points = p; // Imported cases may have false or null if (typeof points !== 'number') points = 0; - console.log(points); if (expiration > 0) { index.expirations.push({ points, expiration, id }); } else { diff --git a/src/structure/components/commands/moderation/History.js b/src/structure/components/commands/moderation/History.js index 6d0e0f4..6d821f9 100644 --- a/src/structure/components/commands/moderation/History.js +++ b/src/structure/components/commands/moderation/History.js @@ -129,7 +129,7 @@ class HistoryCommand extends SlashCommand { const [result] = await infractions.aggregate([{ $match: { ...query, - $or: [{ expiration: { $gt: Date.now() } }, { expiration: null }], + $or: [{ expiration: { $gt: Date.now() } }, { expiration: null }, { expiration: 0 }], resolved: false } }, {