fix: use prisma v6 config
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
This commit is contained in:
parent
84b9ddcd2b
commit
f0a106e5fe
3 changed files with 5 additions and 3 deletions
|
|
@ -31,7 +31,7 @@
|
|||
"@vitest/ui": "^3.1.4",
|
||||
"nodemon": "^3.1.9",
|
||||
"prettier": "^3.4.2",
|
||||
"prisma": "^6.16.2",
|
||||
"prisma": "6.16.2",
|
||||
"prisma-kysely": "^1.8.0",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.7.2",
|
||||
|
|
@ -40,13 +40,14 @@
|
|||
"dependencies": {
|
||||
"@elastic/elasticsearch": "^8.17.0",
|
||||
"@fast-csv/parse": "^5.0.2",
|
||||
"@prisma/client": "^6.16.2",
|
||||
"@prisma/client": "6.16.2",
|
||||
"@scalar/express-api-reference": "^0.4.182",
|
||||
"@tsoa/runtime": "^6.6.0",
|
||||
"@types/html-to-text": "^9.0.4",
|
||||
"canvas": "^3.1.0",
|
||||
"cors": "^2.8.5",
|
||||
"cron": "^3.3.1",
|
||||
"csv-parse": "^6.1.0",
|
||||
"dayjs": "^1.11.13",
|
||||
"dayjs-plugin-utc": "^0.1.2",
|
||||
"docx-templates": "^4.13.0",
|
||||
|
|
@ -62,6 +63,7 @@
|
|||
"morgan": "^1.10.0",
|
||||
"multer": "^1.4.5-lts.2",
|
||||
"nodemailer": "^6.10.0",
|
||||
"pnpm": "^10.18.3",
|
||||
"prisma-extension-kysely": "^3.0.0",
|
||||
"promise.any": "^2.0.6",
|
||||
"thai-baht-text": "^2.0.5",
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ generator kysely {
|
|||
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model Notification {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import kyselyExtension from "prisma-extension-kysely";
|
|||
import type { DB } from "./generated/kysely/types";
|
||||
|
||||
const prisma = new PrismaClient({
|
||||
datasourceUrl: process.env.DATABASE_URL,
|
||||
errorFormat: process.env.NODE_ENV === "production" ? "minimal" : "pretty",
|
||||
}).$extends(
|
||||
kyselyExtension({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue