forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
876de5ca9e
commit
6ca8ca58b8
@ -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 } });
|
||||
|
@ -11,8 +11,6 @@ class Node {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class BinaryTree {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user