Skip to content

Commit b4db0e0

Browse files
committed
a couple of docs fixes
1 parent 2a51a8b commit b4db0e0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/realtime/backend/input-streams.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

docs/tasks/input-streams.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

354354
export async function POST(req: Request) {
355355
const { runId } = await req.json();

0 commit comments

Comments
 (0)