File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ The Input Streams API allows you to send data into running Trigger.dev tasks fro
88
99<Note >
1010 To learn how to receive input stream data inside your tasks, see our [ Input
11- Streams] ( /tasks/input-streams ) documentation. For frontend applications using React, see our
12- [ React hooks input streams documentation] ( /realtime/react-hooks/input-streams ) .
11+ Streams] ( /tasks/input-streams ) documentation.
1312</Note >
1413
1514## Sending data to a running task
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export const publishPost = task({
135135 await publish (draft );
136136 return { published: true , reviewer: result .output .reviewer };
137137 }
138- return { published: false , reason : result .output .comment };
138+ return { published: false , reviewer : result .output .reviewer };
139139 }
140140
141141 // Timed out after 7 days
@@ -349,7 +349,7 @@ export const aiTask = task({
349349### Cancel from a backend API route
350350
351351``` ts app/api/cancel/route.ts
352- import { cancelStream } from " . /trigger/streams" ;
352+ import { cancelStream } from " @ /trigger/streams" ;
353353
354354export async function POST(req : Request ) {
355355 const { runId } = await req .json ();
You can’t perform that action at this time.
0 commit comments