Skip to content

Commit

Permalink
Fix config.db.enableLogging types to align with Prisma 5 (#9100)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens authored Apr 17, 2024
1 parent deecc1b commit 3b6ba78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 38 deletions.
5 changes: 5 additions & 0 deletions .changeset/fix-prisma-logging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/core': patch
---

Fix `config.db.enableLogging` types to align with Prisma 5
2 changes: 1 addition & 1 deletion packages/core/src/types/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export type KeystoneConfig<TypeInfo extends BaseKeystoneTypeInfo = BaseKeystoneT

shadowDatabaseUrl?: string
onConnect?: (args: KeystoneContext<TypeInfo>) => Promise<void>
enableLogging?: boolean | PrismaLogLevel | Array<PrismaLogLevel | PrismaLogDefinition>
enableLogging?: boolean | Array<PrismaLogLevel | PrismaLogDefinition>
idField?: IdFieldConfig
prismaClientPath?: string
prismaSchemaPath?: string
Expand Down
37 changes: 0 additions & 37 deletions tests/cli-tests/prisma.test.ts.2

This file was deleted.

0 comments on commit 3b6ba78

Please sign in to comment.