diff --git a/lib/client/shrimpy-api-client.ts b/lib/client/shrimpy-api-client.ts index 0276cc7..4981ca0 100644 --- a/lib/client/shrimpy-api-client.ts +++ b/lib/client/shrimpy-api-client.ts @@ -227,17 +227,17 @@ export class ShrimpyApiClient { const parameters: { [key: string]: any } = { name: name }; - await this._callEndpoint(endpoint, 'POST', parameters, true); + return this._callEndpoint(endpoint, 'POST', parameters, true); } public async enableUser(userId: string): Promise { const endpoint = `users/${userId}/enable`; - await this._callEndpoint(endpoint, 'POST', null, true); + return this._callEndpoint(endpoint, 'POST', null, true); } public async disableUser(userId: string): Promise { const endpoint = `users/${userId}/disable`; - await this._callEndpoint(endpoint, 'POST', null, true); + return this._callEndpoint(endpoint, 'POST', null, true); } /* User API Keys */