Skip to content

Commit e6f6d93

Browse files
docs: update triggering.mdx fixing wrongly stated argument position for options (#2283)
* docs: update triggering.mdx fixing wrong argument numeration for options Update the docs triggering.mdx: text indicating options argument position inside `tasks.trigger` function. Options object is a third argument instead of stated second argument. * update triggering.mdx to change options argument position in batchTrigger
1 parent 6f6ca01 commit e6f6d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/triggering.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function POST(request: Request) {
6565
}
6666
```
6767

68-
You can pass in options to the task using the second argument:
68+
You can pass in options to the task using the third argument:
6969

7070
```ts Your backend
7171
import { tasks } from "@trigger.dev/sdk";
@@ -116,7 +116,7 @@ export async function POST(request: Request) {
116116
}
117117
```
118118

119-
You can pass in options to the `batchTrigger` function using the second argument:
119+
You can pass in options to the `batchTrigger` function using the third argument:
120120

121121
```ts Your backend
122122
import { tasks } from "@trigger.dev/sdk";

0 commit comments

Comments
 (0)