From 4fa485e8cd8ec31612890b47df8c63fa77a167cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sat, 26 Aug 2023 01:00:37 +0200 Subject: [PATCH] chore(_official-jokes-tutorial): export db in one go --- _official-jokes/app/utils/db.server.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_official-jokes/app/utils/db.server.ts b/_official-jokes/app/utils/db.server.ts index baaa56e7..149b596f 100644 --- a/_official-jokes/app/utils/db.server.ts +++ b/_official-jokes/app/utils/db.server.ts @@ -3,6 +3,4 @@ import { PrismaClient } from "@prisma/client"; import { singleton } from "./singleton.server"; // Hard-code a unique key, so we can look up the client when this module gets re-imported -const db = singleton("prisma", () => new PrismaClient()); - -export { db }; +export const db = singleton("prisma", () => new PrismaClient());