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:
+2
-2
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user