Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include id property in self-retrieve appeals
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent b1986f3 commit 33f9030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/me/appeals.ts
Expand Up @@ -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();
Expand Down

0 comments on commit 33f9030

Please sign in to comment.