Skip to content

Commit ae987c3

Browse files
Update src/content/docs/d1/best-practices/retry-queries.mdx
Co-authored-by: Lambros Petrou <[email protected]>
1 parent 408c373 commit ae987c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/d1/best-practices/retry-queries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You can use libraries abstracting that already like [`@cloudflare/actors`](https
2525
import { tryWhile } from "@cloudflare/actors";
2626

2727
function queryD1Example(d1: D1Database, sql: string) {
28-
return tryWhile(async () => {
28+
return await tryWhile(async () => {
2929
return await d1.prepare(sql).run();
3030
}, shouldRetry);
3131
}

0 commit comments

Comments
 (0)