Skip to content

Commit bc309cf

Browse files
authored
hyperdrive: fix syntax (#23393)
`ctx.waitUntil` not `env.waitUntil` cc @thomasgauvin
1 parent 6e49eb3 commit bc309cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/partials/hyperdrive/use-node-postgres-to-make-query.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
const result = await client.query("SELECT * FROM pg_tables");
4545

4646
// Clean up the client after the response is returned, before the Worker is killed
47-
env.waitUntil(client.end());
47+
ctx.waitUntil(client.end());
4848

4949
return Response.json({
5050
success: true,

0 commit comments

Comments
 (0)