diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-25 17:11:51 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-25 17:11:51 -0400 |
commit | 232634a3b30ba4b5ceabd3c594f5b345fde399e0 (patch) | |
tree | 54bce53bfb50d8b844caba63ae24f6f712303ad8 | |
parent | 1fa290f6b10584b0c4ac32cc3637cb9c0e405e41 (diff) | |
download | tanzanite-232634a3b30ba4b5ceabd3c594f5b345fde399e0.tar.gz tanzanite-232634a3b30ba4b5ceabd3c594f5b345fde399e0.tar.bz2 tanzanite-232634a3b30ba4b5ceabd3c594f5b345fde399e0.zip |
fix(MassEvidenceCommand): find the latest case, not the oldest one
-rw-r--r-- | src/commands/moderation/massEvidence.ts | 2 |
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) ) ) |