forked from Wroclaw/WorkshopTasker
server/utils/database: ensure that database engines exists.
This commit is contained in:
parent
a74e148da4
commit
8bfc059b66
3 changed files with 5 additions and 0 deletions
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -7,6 +7,7 @@
|
|||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@prisma/client": "5.7.0",
|
||||
"@prisma/engines": "^5.7.0",
|
||||
"@prisma/migrate": "5.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "5.7.0",
|
||||
"@prisma/engines": "^5.7.0",
|
||||
"@prisma/migrate": "5.7.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
import { PrismaClient, Prisma } from "@prisma/client";
|
||||
import * as PrismaEngines from "@prisma/engines";
|
||||
|
||||
import { type pageData } from "./baaPageParsing";
|
||||
|
||||
type model = PrismaClient[Uncapitalize<Prisma.ModelName>];
|
||||
|
||||
PrismaEngines.ensureBinariesExist();
|
||||
|
||||
function getBeforeParameters<T, A>(
|
||||
pageData: pageData<false>,
|
||||
fetchArgs: Prisma.Args<T, "findMany">,
|
||||
|
|
Loading…
Reference in a new issue