Skip to content

Commit ce81f1f

Browse files
committed
Code tweak
1 parent 59d9ac6 commit ce81f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/examples/replicate-image-generation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const generateImageAndUploadToR2 = task({
4949
webhook_events_filter: ["completed"],
5050
});
5151

52-
const result = await wait.forToken<Prediction>(token);
52+
const result = await wait.forToken<Prediction>(token).unwrap();
5353
// unwrap() throws a timeout error or returns the result 👆
5454

5555
if (!result.ok) {

0 commit comments

Comments
 (0)