From b1b2cd088b684eda764962abd61754c26a204d1c Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 29 Oct 2024 22:18:45 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=94=AF=E6=8C=81=E7=99=BD=E5=B1=B1?= =?UTF-8?q?=E4=BA=91cdn=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-demo.yml | 1 + packages/core/pipeline/src/plugin/api.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index b6205606..50fdeca7 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -23,6 +23,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: v2-dev - name: get_certd_version id: get_certd_version uses: actions/github-script@v6 diff --git a/packages/core/pipeline/src/plugin/api.ts b/packages/core/pipeline/src/plugin/api.ts index 2b86b0e5..b3c8a501 100644 --- a/packages/core/pipeline/src/plugin/api.ts +++ b/packages/core/pipeline/src/plugin/api.ts @@ -123,7 +123,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin { this.accessService = ctx.accessService; } - async getAccess(accessId: string) { + async getAccess(accessId: string) { if (accessId == null) { throw new Error("您还没有配置授权"); } @@ -131,7 +131,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin { if (res == null) { throw new Error("授权不存在,可能已被删除,请前往任务配置里面重新选择授权"); } - return res; + return res as T; } randomFileId() {