diff --git a/libs/api-sdk/src/apiSdk.ts b/libs/api-sdk/src/apiSdk.ts index 989eb1b6..a3342445 100644 --- a/libs/api-sdk/src/apiSdk.ts +++ b/libs/api-sdk/src/apiSdk.ts @@ -130,7 +130,7 @@ export default class ApiSdk { * @returns undefined. */ async removeGroup(groupId: string, apiKey: string): Promise { - return removeGroup(this._config, groupId, apiKey) + await removeGroup(this._config, groupId, apiKey) } /** @@ -140,7 +140,7 @@ export default class ApiSdk { * @returns undefined. */ async removeGroups(groupIds: Array, apiKey: string): Promise { - return removeGroups(this._config, groupIds, apiKey) + await removeGroups(this._config, groupIds, apiKey) } /** diff --git a/libs/api-sdk/src/groups.ts b/libs/api-sdk/src/groups.ts index 0bdcb306..6f76a01e 100644 --- a/libs/api-sdk/src/groups.ts +++ b/libs/api-sdk/src/groups.ts @@ -61,9 +61,7 @@ export async function removeGroup( newConfig.headers["x-api-key"] = apiKey - const req = await request(requestUrl, newConfig) - - return req + await request(requestUrl, newConfig) } /** @@ -86,9 +84,7 @@ export async function removeGroups( newConfig.headers["x-api-key"] = apiKey - const req = await request(url, newConfig) - - return req + await request(url, newConfig) } /**