Skip to content

Commit

Permalink
chore(_official-jokes-tutorial): export db in one go
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 25, 2023
1 parent 371501e commit 4fa485e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _official-jokes/app/utils/db.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());

0 comments on commit 4fa485e

Please sign in to comment.