From 33f90300cafffd6e7a2b9553a6ecceabec02bf0c Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:15 -0400 Subject: [PATCH] Include id property in self-retrieve appeals --- functions/api/me/appeals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/me/appeals.ts b/functions/api/me/appeals.ts index 944bcbf..487d133 100644 --- a/functions/api/me/appeals.ts +++ b/functions/api/me/appeals.ts @@ -2,7 +2,7 @@ import { jsonError, jsonResponse } from "../../common.js"; export async function onRequestGet(context: RequestContext) { 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) .all();