Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove gma lookup work around
Table now has an "open" column
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 5ca71a4 commit 53c06cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/mod-queue/list.ts
Expand Up @@ -56,10 +56,10 @@ export async function onRequestGet(context: RequestContext) {
await context.env.D1.prepare(
`SELECT id
FROM ${table}
WHERE created_at < ? ${entryType === "gma" ? "" : "AND open = ?"}
WHERE created_at < ? AND open = ?
ORDER BY created_at DESC LIMIT 25;`,
)
.bind(before, entryType === "gma" ? undefined : Number(!showClosed))
.bind(before, Number(!showClosed))
.all();

if (results)
Expand Down

0 comments on commit 53c06cb

Please sign in to comment.