Get almost everything else
All checks were successful
Test, Build, Deploy / Test, Build, and Deploy (push) Successful in 55s
Test, Build, Deploy / Create Sentry Release (push) Successful in 6s

This commit is contained in:
2026-04-11 04:49:02 -04:00
parent fe206e2fbd
commit 5457898ff9
4 changed files with 101 additions and 78 deletions

View File

@@ -1,9 +1,11 @@
import { jsonResponse } from "../../common.js";
export async function onRequestGet(context: RequestContext) {
const { results } = await context.env.D1.prepare(
"SELECT * FROM appeal_bans ORDER BY created_by DESC;",
).all();
const results = await context.data.prisma.appealBan.findMany({
orderBy: {
created_at: "desc",
},
});
return jsonResponse(JSON.stringify(results));
}