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
This commit is contained in:
Ognjen Simic
2025-08-28 11:16:42 +02:00
committed by GitHub
parent 6f6ca01584
commit e6f6d93e59
+2 -2
View File
@@ -65,7 +65,7 @@ export async function POST(request: Request) {
}
```
You can pass in options to the task using the second argument:
You can pass in options to the task using the third argument:
```ts Your backend
import { tasks } from "@trigger.dev/sdk";
@@ -116,7 +116,7 @@ export async function POST(request: Request) {
}
```
You can pass in options to the `batchTrigger` function using the second argument:
You can pass in options to the `batchTrigger` function using the third argument:
```ts Your backend
import { tasks } from "@trigger.dev/sdk";