From 9adf23f98e6db0df5c1a65660b24d20b093f7457 Mon Sep 17 00:00:00 2001 From: zehao Date: Tue, 1 Dec 2020 20:30:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E6=8E=A5=E5=8F=A3=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/customfield/get.ts | 2 +- src/apis/customfield/put.ts | 2 +- src/apis/scenariofieldconfig/get-by-project-id.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apis/customfield/get.ts b/src/apis/customfield/get.ts index d03c92729..f2b71cbcd 100644 --- a/src/apis/customfield/get.ts +++ b/src/apis/customfield/get.ts @@ -11,7 +11,7 @@ export function getCustomFieldFetch( this: SDKFetch, customFieldId: CustomFieldId ): Observable { - return this.get(`customfields/${customFieldId}`) + return this.get(`v2/customfields/${customFieldId}`) } declare module '../../SDKFetch' { diff --git a/src/apis/customfield/put.ts b/src/apis/customfield/put.ts index 8ce11d6d1..7ab39a3e3 100644 --- a/src/apis/customfield/put.ts +++ b/src/apis/customfield/put.ts @@ -9,7 +9,7 @@ export function lockCustomFieldFetch( customFieldId: CustomFieldId, isLocked: boolean ) { - const url = `organizations/${orgId}/customfields/${customFieldId}/islocked` + const url = `v2/organizations/${orgId}/customfields/${customFieldId}/islocked` const body = { isLocked: isLocked } return this.put(url, body) diff --git a/src/apis/scenariofieldconfig/get-by-project-id.ts b/src/apis/scenariofieldconfig/get-by-project-id.ts index b2cda02aa..29ec618c2 100644 --- a/src/apis/scenariofieldconfig/get-by-project-id.ts +++ b/src/apis/scenariofieldconfig/get-by-project-id.ts @@ -50,7 +50,7 @@ export function getScenarioFieldConfigsFetch( withCustomfields = true }: GetScenarioFieldConfigsFetchOptions = {} ) { - const url = `projects/${projectId}/scenariofieldconfigs` + const url = `v2/projects/${projectId}/scenariofieldconfigs` const query = { objectType, withTaskflowstatus,