Skip to content

Commit 5c4caf8

Browse files
fix(cli): update conditional logic for Prisma client extension in index template
1 parent c926e10 commit 5c4caf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/cli/templates/db/prisma/postgres/src/db/index.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PrismaClient } from "../../prisma/generated/client";
2-
{{#if (or (eq dbSetup "prisma-postgres") (eq orm "prisma"))}}
2+
{{#if (and (eq dbSetup "prisma-postgres") (eq orm "prisma"))}}
33
import { withAccelerate } from "@prisma/extension-accelerate";
44

55
const prisma = new PrismaClient().$extends(withAccelerate());

0 commit comments

Comments
 (0)