feat: add extensive test suite
This commit is contained in:
@@ -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)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user