Skip to content

Commit

Permalink
fix: Ensure transaction commits before returning from listenQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 30, 2024
1 parent 162cdb0 commit 8ae52aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ export async function listenQueue(kv: Deno.Kv) {
WHERE id = $1
`,
});
continue;
if (transaction) await transaction.commit();
return;
}

// from here...
Expand Down

0 comments on commit 8ae52aa

Please sign in to comment.