Fix wrong column name
This commit is contained in:
parent
e00b7e8c55
commit
8f4947c8ac
@ -34,7 +34,7 @@ export async function onRequestGet(context: RequestContext): Promise<any> {
|
|||||||
`SELECT *
|
`SELECT *
|
||||||
FROM appeals
|
FROM appeals
|
||||||
WHERE created_at < ?
|
WHERE created_at < ?
|
||||||
AND open ${showClosed ? "IS NOT" : "IS"} NULL
|
AND approved ${showClosed ? "IS NOT" : "IS"} NULL
|
||||||
ORDER BY created_at DESC LIMIT 25;`,
|
ORDER BY created_at DESC LIMIT 25;`,
|
||||||
)
|
)
|
||||||
.bind(before, !Number(showClosed))
|
.bind(before, !Number(showClosed))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user