From e42bbb953fe34bd8d6b4991c5979b6fc443d6909 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 27 Jan 2024 14:47:59 +0200 Subject: [PATCH] fix: use lower casesPerPage Temporary fix to make it unlikely to go over the 4096 character limit Needs a proper fix in the future where we pre-render the case summaries and paginate based on their length. --- backend/src/plugins/ModActions/commands/CasesModCmd.ts | 2 +- backend/src/plugins/ModActions/commands/CasesUserCmd.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/ModActions/commands/CasesModCmd.ts b/backend/src/plugins/ModActions/commands/CasesModCmd.ts index 67363fe5..306c1ad1 100644 --- a/backend/src/plugins/ModActions/commands/CasesModCmd.ts +++ b/backend/src/plugins/ModActions/commands/CasesModCmd.ts @@ -12,7 +12,7 @@ const opts = { mod: ct.userId({ option: true }), }; -const casesPerPage = 10; +const casesPerPage = 5; export const CasesModCmd = modActionsCmd({ trigger: ["cases", "modlogs", "infractions"], diff --git a/backend/src/plugins/ModActions/commands/CasesUserCmd.ts b/backend/src/plugins/ModActions/commands/CasesUserCmd.ts index 08c6f2a6..1fd8973b 100644 --- a/backend/src/plugins/ModActions/commands/CasesUserCmd.ts +++ b/backend/src/plugins/ModActions/commands/CasesUserCmd.ts @@ -28,7 +28,7 @@ const opts = { unbans: ct.switchOption({ def: false, shortcut: "ub" }), }; -const casesPerPage = 10; +const casesPerPage = 5; export const CasesUserCmd = modActionsCmd({ trigger: ["cases", "modlogs"],