From 6e4a525a90b858b31eac2658c4e88395e5e3432c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 15 Sep 2022 15:19:42 +0100 Subject: [PATCH] Promisify queries API --- packages/sdk/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/index.js b/packages/sdk/src/index.js index c8948484a9..e56ef051f7 100644 --- a/packages/sdk/src/index.js +++ b/packages/sdk/src/index.js @@ -45,7 +45,7 @@ const promisify = apiName => { } export const ApplicationsApi = promisify("ApplicationsApi") -export const QueriesApi = new BudibaseApi.QueriesApi(ApiClient) +export const QueriesApi = promisify("QueriesApi") export const RowsApi = promisify("RowsApi") export const TablesApi = promisify("TablesApi") export const UsersApi = promisify("UsersApi")