aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-25 17:11:51 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-25 17:11:51 -0400
commit232634a3b30ba4b5ceabd3c594f5b345fde399e0 (patch)
tree54bce53bfb50d8b844caba63ae24f6f712303ad8 /src
parent1fa290f6b10584b0c4ac32cc3637cb9c0e405e41 (diff)
downloadtanzanite-232634a3b30ba4b5ceabd3c594f5b345fde399e0.tar.gz
tanzanite-232634a3b30ba4b5ceabd3c594f5b345fde399e0.tar.bz2
tanzanite-232634a3b30ba4b5ceabd3c594f5b345fde399e0.zip
fix(MassEvidenceCommand): find the latest case, not the oldest one
Diffstat (limited to 'src')
-rw-r--r--src/commands/moderation/massEvidence.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/moderation/massEvidence.ts b/src/commands/moderation/massEvidence.ts
index 8731de2..62421da 100644
--- a/src/commands/moderation/massEvidence.ts
+++ b/src/commands/moderation/massEvidence.ts
@@ -64,7 +64,7 @@ export default class MassEvidenceCommand extends BushCommand {
ids.map((id) =>
ModLog.findOne({
where: { guild: message.guild.id, user: id },
- order: [['createdAt', 'ASC']]
+ order: [['createdAt', 'DESC']]
}).catch(() => null)
)
)