From 17bca653cff5ef358d5797b8a26e8e20ba59ec85 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:21 -0400 Subject: [PATCH] Add inactivity prefix to fetch by id --- functions/api/mod-queue/[type]/[id].ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/functions/api/mod-queue/[type]/[id].ts b/functions/api/mod-queue/[type]/[id].ts index b180119..9f0167a 100644 --- a/functions/api/mod-queue/[type]/[id].ts +++ b/functions/api/mod-queue/[type]/[id].ts @@ -6,11 +6,15 @@ export async function onRequestGet(context: RequestContext) { }, gma: { permissions: [1 << 5], - prefix: `gameappeal_`, + prefix: "gameappeal_", + }, + inactivity: { + permissions: [1 << 0, 1 << 4, 1 << 6, 1 << 7, 1 << 11], + prefix: "inactivity_", }, report: { permissions: [1 << 5], - prefix: `report_`, + prefix: "report_", }, }; @@ -19,7 +23,7 @@ export async function onRequestGet(context: RequestContext) { if ( !types[type]?.permissions.find( - (p) => context.data.current_user.permissions & p + (p) => context.data.current_user.permissions & p, ) ) return new Response('{"error":"You cannot use this filter"}', {