From db7e9326ac7ba3eb17304774dfaae6d0787db6a1 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:50 -0400 Subject: [PATCH] Add inactivity notices to mod queue list endpoint --- functions/api/mod-queue/list.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/api/mod-queue/list.ts b/functions/api/mod-queue/list.ts index 1e28a9d..4871af8 100644 --- a/functions/api/mod-queue/list.ts +++ b/functions/api/mod-queue/list.ts @@ -8,16 +8,19 @@ export async function onRequestGet(context: RequestContext) { const tables: { [k: string]: string } = { appeal: "appeals", gma: "game_appeals", + inactivity: "inactivity_notices", report: "reports", }; const types: { [k: string]: string } = { appeal: "appeal", gma: "gameappeal", + inactivity: "inactivity", report: "report", }; const permissions: { [k: string]: number[] } = { appeal: [1 << 0, 1 << 1], gma: [1 << 5], + inactivity: [1 << 4, 1 << 6, 1 << 7, 1 << 11, 1 << 12], report: [1 << 5], }; const { current_user: currentUser } = context.data;