This commit is contained in:
Erik 2022-08-01 11:53:03 +03:00
parent 876de5ca9e
commit 6ca8ca58b8
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 4 additions and 6 deletions

View File

@ -37,11 +37,11 @@ class ModstatsCommand extends SlashCommand {
if (opts.after && opts.before) { if (opts.after && opts.before) {
query.timestamp = { query.timestamp = {
$gt: opts.after.valueOf(), $gt: opts.after.value.valueOf(),
$lt: opts.before.valueOf() $lt: opts.before.value.valueOf()
}; };
result.time.rangeEnd = opts.before.valueOf(); result.time.rangeEnd = opts.before.value.valueOf();
result.time.rangeStart = opts.after.valueOf(); result.time.rangeStart = opts.after.value.valueOf();
} }
const data = await this.client.mongodb.infractions.find(query, { projection: { executor: 1, type: 1 } }); const data = await this.client.mongodb.infractions.find(query, { projection: { executor: 1, type: 1 } });

View File

@ -11,8 +11,6 @@ class Node {
} }
} }
class BinaryTree { class BinaryTree {
/** /**