Refactor Study Desk application structure
This commit is contained in:
parent
faaccf8a7e
commit
089439ed90
145 changed files with 8087 additions and 3412 deletions
8
src/services/healthService.ts
Normal file
8
src/services/healthService.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { prisma } from "@/lib/db";
|
||||
|
||||
export async function checkApplicationHealth() {
|
||||
await prisma.$transaction([
|
||||
prisma.deck.findFirst({ select: { id: true, groupId: true } }),
|
||||
prisma.materialGroup.count(),
|
||||
]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue