feat: add extensive test suite

This commit is contained in:
2026-08-30 11:33:53 +07:00 Unverified
parent 061cce00dc
commit 8359c7272e
131 changed files with 8717 additions and 2200 deletions
+4 -5
View File
@@ -1,9 +1,8 @@
import { not } from "drizzle-orm";
import { db } from "@/lib/db";
import { endgameSubmissions } from "@/lib/db/schema";
import { createCountHandler } from "@/lib/server-handlers";
export async function GET() {
return Response.json(
await db.$count(endgameSubmissions, not(endgameSubmissions.deleted)),
);
}
export const GET = createCountHandler(() =>
db.$count(endgameSubmissions, not(endgameSubmissions.deleted)),
);