diff --git a/package-lock.json b/package-lock.json index 0898de5..8a09587 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "hasInstallScript": true, "dependencies": { "@prisma/client": "5.7.0", + "@prisma/engines": "^5.7.0", "@prisma/migrate": "5.7.0" }, "devDependencies": { diff --git a/package.json b/package.json index f91f841..342dac7 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ }, "dependencies": { "@prisma/client": "5.7.0", + "@prisma/engines": "^5.7.0", "@prisma/migrate": "5.7.0" } } diff --git a/server/utils/database.ts b/server/utils/database.ts index 8223437..8ebed0c 100644 --- a/server/utils/database.ts +++ b/server/utils/database.ts @@ -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]; +PrismaEngines.ensureBinariesExist(); + function getBeforeParameters( pageData: pageData, fetchArgs: Prisma.Args,