fix: (docker images)

changed check-db.mjs to output number in stdout
changed routes.ts to import prisma with relative paths
This commit is contained in:
Charly Gley
2025-05-05 21:04:14 +02:00
parent 37a30f1bd7
commit 1a0b565ae0
3 changed files with 8 additions and 5 deletions

View File

@@ -2,7 +2,10 @@ import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function main() {}
async function main() {
const count = await prisma.user.count();
console.log(count);
}
main()
.catch((e) => {
@@ -11,4 +14,4 @@ main()
})
.finally(async () => {
await prisma.$disconnect();
});
});