Skip to content

Commit b17f3e1

Browse files
committed
[chore] fix
1 parent 95e0d51 commit b17f3e1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎src/commands/anomaly/list.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ export const anomalyListCommand: Command = {
4747
const full = getArgBoolean(args, 'full') === true;
4848

4949
const api = new PolylaneAPI(config);
50-
const result = await api.anomaliesList({
51-
kind: 'workspace',
52-
workspaceId,
50+
const result = await api.anomaliesList(workspaceId, {
5351
limit,
5452
...(severityRaw ? { severity: severityRaw as Severity } : {}),
5553
...(getArgBoolean(args, 'active') === true ? { active: true } : {}),

‎src/commands/anomaly/show.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const anomalyShowCommand: Command = {
1414
const workspaceId = await requireWorkspace(config);
1515
const id = requirePositional(args, 0, 'anomaly-id');
1616
const api = new PolylaneAPI(config);
17-
const result = await api.anomaliesGet({ workspaceId, id });
17+
const result = await api.anomaliesGet(workspaceId, id);
1818
formatOutput(config, result);
1919
},
2020
};

0 commit comments

Comments
 (0)