mirror of
https://github.com/kyantech/Palmr.git
synced 2025-11-03 05:23:19 +00:00
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:
@@ -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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user