Include id property in self-retrieve appeals
This commit is contained in:
parent
b1986f3ad2
commit
33f90300ca
@ -2,7 +2,7 @@ import { jsonError, jsonResponse } from "../../common.js";
|
|||||||
|
|
||||||
export async function onRequestGet(context: RequestContext) {
|
export async function onRequestGet(context: RequestContext) {
|
||||||
const { results, success } = await context.env.D1.prepare(
|
const { results, success } = await context.env.D1.prepare(
|
||||||
"SELECT approved, created_at, open FROM appeals WHERE user = ?;",
|
"SELECT approved, created_at, id, open FROM appeals WHERE user = ?;",
|
||||||
)
|
)
|
||||||
.bind(context.data.current_user.id)
|
.bind(context.data.current_user.id)
|
||||||
.all();
|
.all();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user