Add inactivity notices to mod queue list endpoint

This commit is contained in:
regalijan 2023-10-19 16:50:50 -04:00
parent 4dd1442dc3
commit db7e9326ac
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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;