Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't check for open property on game appeals
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent c848453 commit 7f39f0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions/api/mod-queue/list.ts
Expand Up @@ -54,7 +54,10 @@ export async function onRequestGet(context: RequestContext) {
To avoid any potential injection attacks we enforce a list of specific values and permissions for table names
*/
await context.env.D1.prepare(
`SELECT id FROM ${table} WHERE created_at < ? AND open = ? ORDER BY created_at DESC LIMIT 25;`,
`SELECT id
FROM ${table}
WHERE created_at < ? ${entryType === "gma" ? "" : "AND open = ?"}
ORDER BY created_at DESC LIMIT 25;`,
)
.bind(before, Number(!showClosed))
.all();
Expand Down

0 comments on commit 7f39f0d

Please sign in to comment.