Skip to content

Commit

Permalink
chore(_official-jokes-tutorial): remove explicit DB connection
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Aug 25, 2023
1 parent 4eace41 commit 371501e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion _official-jokes/app/utils/db.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ 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());
db.$connect();

export { db };

0 comments on commit 371501e

Please sign in to comment.