From d0d3e33606bb53e563ca388993f1ec9fbed81fd2 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 12 Jun 2023 16:29:41 +0100 Subject: [PATCH] Fixing linting. --- .github/workflows/budibase_ci.yml | 2 ++ qa-core/src/account-api/api/apis/AccountAPI.ts | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index 6c875f2dfe..5288d6d2cb 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -23,6 +23,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: ${{ BRANCH }} - name: Use Node.js 14.x uses: actions/setup-node@v3 with: diff --git a/qa-core/src/account-api/api/apis/AccountAPI.ts b/qa-core/src/account-api/api/apis/AccountAPI.ts index 54784814b7..fc6f6caecb 100644 --- a/qa-core/src/account-api/api/apis/AccountAPI.ts +++ b/qa-core/src/account-api/api/apis/AccountAPI.ts @@ -60,9 +60,12 @@ export default class AccountAPI { } async delete(accountID: string) { - const [response, json] = await this.client.del(`/api/accounts/${accountID}`, { - internal: true, - }) + const [response, json] = await this.client.del( + `/api/accounts/${accountID}`, + { + internal: true, + } + ) // can't use expect here due to use in global teardown if (response.status !== 204) { throw new Error(`Could not delete accountId=${accountID}`)