Skip to content

Commit 56060d3

Browse files
committed
Fix for bad package name in docs. @trigger-dev/sdk -> @trigger.dev/sdk/v3
1 parent c0daeff commit 56060d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/v3/run-usage.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ export const heavyTask = task({
6363
You can use [runs.retrieve()](/v3/management/runs/retrieve) to get a single run or [runs.list()](/v3/management/runs/list) to get a list of runs. The response will include `costInCents` `baseCostInCents` and `durationMs` fields.
6464

6565
```ts single run
66-
import { runs } from "@trigger-dev/sdk";
66+
import { runs } from "@trigger.dev/sdk/v3";
6767

6868
const run = await runs.retrieve("run-id");
6969
console.log(run.costInCents, run.baseCostInCents, run.durationMs);
7070
const totalCost = run.costInCents + run.baseCostInCents;
7171
```
7272

7373
```ts multiple runs
74-
import { runs } from "@trigger-dev/sdk";
74+
import { runs } from "@trigger.dev/sdk/v3";
7575

7676
let totalCost = 0;
7777
for await (const run of runs.list({ tag: "user_123456" })) {

0 commit comments

Comments
 (0)