Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add inactivity notices to mod queue list endpoint
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 4dd1442 commit db7e932
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/api/mod-queue/list.ts
Expand Up @@ -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;
Expand Down

0 comments on commit db7e932

Please sign in to comment.