server/utils/database: ensure that database engines exists.
All checks were successful
Build dev / build (push) Successful in 1m18s

This commit is contained in:
Wroclaw 2023-12-20 04:01:04 +01:00
parent a74e148da4
commit 8bfc059b66
3 changed files with 5 additions and 0 deletions

1
package-lock.json generated
View file

@ -7,6 +7,7 @@
"hasInstallScript": true,
"dependencies": {
"@prisma/client": "5.7.0",
"@prisma/engines": "^5.7.0",
"@prisma/migrate": "5.7.0"
},
"devDependencies": {

View file

@ -24,6 +24,7 @@
},
"dependencies": {
"@prisma/client": "5.7.0",
"@prisma/engines": "^5.7.0",
"@prisma/migrate": "5.7.0"
}
}

View file

@ -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">,