From 1a013b675c92955301ff9bacd93c709076385c4c Mon Sep 17 00:00:00 2001 From: Fi1osof Date: Tue, 3 Sep 2019 18:40:20 +0300 Subject: [PATCH] Fix returns --- lib/client/shrimpy-api-client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */