Fix existing appeal check
This commit is contained in:
parent
90f7a93d46
commit
111b25b3da
@ -41,7 +41,7 @@ export async function loader({ context }: { context: RequestContext }) {
|
||||
!Boolean(await dataKV.get(`blockedappeal_${currentUser.id}`)) &&
|
||||
!Boolean(
|
||||
await context.env.D1.prepare(
|
||||
"SELECT * FROM appeals WHERE open = 1 AND user = ? LIMIT 1;",
|
||||
"SELECT * FROM appeals WHERE approved IS NULL AND json_extract(user, '$.id') = ? LIMIT 1;",
|
||||
)
|
||||
.bind(currentUser.id)
|
||||
.first(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user