From 6ca8ca58b842e3da17afd83f9ad40b7e977e66b4 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 1 Aug 2022 11:53:03 +0300 Subject: [PATCH] bugfix --- .../components/commands/administration/Modstats.js | 8 ++++---- src/utilities/BinaryTree.js | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/structure/components/commands/administration/Modstats.js b/src/structure/components/commands/administration/Modstats.js index 156487d..f448ad5 100644 --- a/src/structure/components/commands/administration/Modstats.js +++ b/src/structure/components/commands/administration/Modstats.js @@ -37,11 +37,11 @@ class ModstatsCommand extends SlashCommand { if (opts.after && opts.before) { query.timestamp = { - $gt: opts.after.valueOf(), - $lt: opts.before.valueOf() + $gt: opts.after.value.valueOf(), + $lt: opts.before.value.valueOf() }; - result.time.rangeEnd = opts.before.valueOf(); - result.time.rangeStart = opts.after.valueOf(); + result.time.rangeEnd = opts.before.value.valueOf(); + result.time.rangeStart = opts.after.value.valueOf(); } const data = await this.client.mongodb.infractions.find(query, { projection: { executor: 1, type: 1 } }); diff --git a/src/utilities/BinaryTree.js b/src/utilities/BinaryTree.js index f848f8a..18d0ed9 100644 --- a/src/utilities/BinaryTree.js +++ b/src/utilities/BinaryTree.js @@ -11,8 +11,6 @@ class Node { } } - - class BinaryTree { /**