From 2e827bcc8e9ce8ba127ee399195325e6451f0e6b Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Mon, 31 Jul 2023 18:01:40 +0100 Subject: [PATCH] Moving 'self' function from AuthAPI to AccountAPI This function will be used within Account testing --- qa-core/src/account-api/api/apis/AccountAPI.ts | 6 ++++++ qa-core/src/account-api/api/apis/AuthAPI.ts | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qa-core/src/account-api/api/apis/AccountAPI.ts b/qa-core/src/account-api/api/apis/AccountAPI.ts index 33e64da7ad..13c7e1709d 100644 --- a/qa-core/src/account-api/api/apis/AccountAPI.ts +++ b/qa-core/src/account-api/api/apis/AccountAPI.ts @@ -114,4 +114,10 @@ export default class AccountAPI extends BaseAPI { }) }, opts) } + + async self(opts: APIRequestOpts = { status: 200 }) { + return this.doRequest(() => { + return this.client.get(`/api/auth/self`) + }, opts) + } } diff --git a/qa-core/src/account-api/api/apis/AuthAPI.ts b/qa-core/src/account-api/api/apis/AuthAPI.ts index ba5a73f586..304b13db57 100644 --- a/qa-core/src/account-api/api/apis/AuthAPI.ts +++ b/qa-core/src/account-api/api/apis/AuthAPI.ts @@ -65,10 +65,4 @@ export default class AuthAPI extends BaseAPI { }) }, opts) } - - async self(opts: APIRequestOpts = { status: 200 }) { - return this.doRequest(() => { - return this.client.get(`/api/auth/self`) - }, opts) - } }