Include id property in self-retrieve appeals

This commit is contained in:
regalijan 2023-10-19 16:51:15 -04:00
parent b1986f3ad2
commit 33f90300ca
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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();