From fc6857b42d88193ae9480667c11dcdf6e82ad9eb Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Fri, 21 Oct 2022 10:38:11 +1100 Subject: [PATCH] fix embedded next javascript example --- examples/embedded-nextjs/with.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/embedded-nextjs/with.js b/examples/embedded-nextjs/with.js index eb4d0a447cb..1b329f25001 100644 --- a/examples/embedded-nextjs/with.js +++ b/examples/embedded-nextjs/with.js @@ -12,9 +12,7 @@ let globalContext = null; export async function withContext() { if (globalContext) return globalContext; - const { connect, context } = getContext(config, PrismaModule); - await connect(); - + const context = getContext(config, PrismaModule); globalContext = context; return globalContext; }