Skip to content

Commit

Permalink
fix(docs): Correct typo in '/idempotency' documentation (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisquare7 authored Nov 2, 2024
1 parent c9811be commit 6313db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/idempotency.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ If you are triggering a task from your backend code, you can use the `idempotenc
import { idempotencyKeys, tasks } from "@trigger.dev/sdk/v3";

// You can also pass an array of strings to create a idempotency key
const idempotencyKey = await idempotenceKeys.create([myUser.id, "my-task"]);
const idempotencyKey = await idempotencyKeys.create([myUser.id, "my-task"]);
await tasks.trigger("my-task", { some: "data" }, { idempotencyKey });
```

Expand All @@ -83,7 +83,7 @@ import { tasks } from "@trigger.dev/sdk/v3";
await tasks.batchTrigger("my-task", [
{
payload: { some: "data" },
options: { idempotencyKey: await idempotenceKeys.create(myUser.id) },
options: { idempotencyKey: await idempotencyKeys.create(myUser.id) },
},
]);
```
Expand Down

0 comments on commit 6313db6

Please sign in to comment.