From 5e2afbdf3bd1875a664be23929f256db2583f876 Mon Sep 17 00:00:00 2001 From: NirmitiJain Date: Wed, 26 Oct 2022 22:06:14 +0530 Subject: [PATCH] review fix --- lib/resources/brand.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lib/resources/brand.js b/lib/resources/brand.js index a7e6d9c..1f5baf7 100644 --- a/lib/resources/brand.js +++ b/lib/resources/brand.js @@ -30,16 +30,6 @@ let idKey = Symbol('id filed'); extend(this, data); } } -export class BrandUsecases extends PlivoResource { - constructor(client, data = {}) { - super(action, BrandUsecases, idField, client); - this[actionKey] = action; - this[clientKey] = client; - - extend(this, data); - } -} - export class BrandCreationResponse { constructor(params) { @@ -119,12 +109,11 @@ export class BrandCreationResponse { * get BrandUsecases by given id * @method * @param {string} brandID - id of brand - * @promise {object} return {@link BrandUsecases} object + * @promise {object} return {@link Brand} object * @fail {Error} return Error */ get_usecases(brandId) { - let params = {} - return super.customexecuteAction(action+brandId+'/usecases/', 'GET', params); + return super.customexecuteAction(action+brandId+'/usecases/', 'GET'); }