From d9a799dbcfa4db5908a2a168ce78adc544df45b5 Mon Sep 17 00:00:00 2001 From: Veaceslav <118342408+vCaisim@users.noreply.github.com> Date: Fri, 2 Aug 2024 00:58:16 +0300 Subject: [PATCH] fix: use v1/runs endpoint [CSR-1336] (#6) * fix: use the latest @currents/cmd * fix: change the url to v1/runs --- package-lock.json | 2 +- packages/cmd/src/api/run.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7f422ad..7c610b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13325,7 +13325,7 @@ }, "packages/cmd": { "name": "@currents/cmd", - "version": "1.0.1", + "version": "1.0.2", "license": "GPL-3.0-or-later", "dependencies": { "@commander-js/extra-typings": "^11.1.0", diff --git a/packages/cmd/src/api/run.ts b/packages/cmd/src/api/run.ts index d52b85b..784027f 100644 --- a/packages/cmd/src/api/run.ts +++ b/packages/cmd/src/api/run.ts @@ -76,7 +76,7 @@ export async function createRun(params: RunParams) { const data = await compressData(JSON.stringify(params)); return makeRequest({ - url: `v2/runs`, + url: `v1/runs`, method: "POST", headers: { "Content-Type": "application/json",