From e3cdfb24ed0a7fa6ffb3f2db849d5ff52d887960 Mon Sep 17 00:00:00 2001 From: Hisaki Akaza <4494300+the-red@users.noreply.github.com> Date: Tue, 21 Mar 2023 18:05:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20OAuth=E3=81=AE=E3=81=A8=E3=81=8D?= =?UTF-8?q?=E3=81=AFJS=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=81=AE?= =?UTF-8?q?=E3=81=A7SKIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pull.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pull.ts b/src/pull.ts index 05a106b..144f9ad 100644 --- a/src/pull.ts +++ b/src/pull.ts @@ -135,6 +135,10 @@ export const ginuePull = async (ktn: Ktn, opts: Opts) => { saveKintoneInfo(altFilePath, kintoneInfoAlt) } if (ktn.command === 'app/customize.json' && opts.downloadJs) { + if (ktn.accessToken) { + console.info(`[SKIP] Download JS File (Forbidden via OAuth)`) + return + } await downloadCustomizeFiles(kintoneInfo!, ktn, opts) } }