Skip to content

Commit 4fa485e

Browse files
committed
chore(_official-jokes-tutorial): export db in one go
1 parent 371501e commit 4fa485e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

_official-jokes/app/utils/db.server.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ import { PrismaClient } from "@prisma/client";
33
import { singleton } from "./singleton.server";
44

55
// Hard-code a unique key, so we can look up the client when this module gets re-imported
6-
const db = singleton("prisma", () => new PrismaClient());
7-
8-
export { db };
6+
export const db = singleton("prisma", () => new PrismaClient());

0 commit comments

Comments
 (0)