Files
Palmr/apps/server/scripts/check-db.mjs
Charly Gley 1a0b565ae0 fix: (docker images)
changed check-db.mjs to output number in stdout
changed routes.ts to import prisma with relative paths
2025-05-05 21:04:14 +02:00

17 lines
311 B
JavaScript

import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {
const count = await prisma.user.count();
console.log(count);
}
main()
.catch((e) => {
console.error(e);
process.exit(1);
})
.finally(async () => {
await prisma.$disconnect();
});