From e0b18c00f150aab6bace7f6b45590b64e5960207 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Mon, 9 Nov 2020 19:04:01 -0300 Subject: [PATCH] fix(core.gbapp): Fixing missing await calls. --- packages/core.gbapp/services/GBCoreService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core.gbapp/services/GBCoreService.ts b/packages/core.gbapp/services/GBCoreService.ts index 3fe31bab4..6cc2d927b 100644 --- a/packages/core.gbapp/services/GBCoreService.ts +++ b/packages/core.gbapp/services/GBCoreService.ts @@ -220,10 +220,10 @@ export class GBCoreService implements IGBCoreService { [Op.or]: and } }; - return GuaribasInstance.findAll(options); + return await GuaribasInstance.findAll(options); } else { const options = { where: { state: 'active' } }; - return GuaribasInstance.findAll(options); + return await GuaribasInstance.findAll(options); } } @@ -243,7 +243,7 @@ export class GBCoreService implements IGBCoreService { public async loadInstanceById(instanceId: number): Promise { const options = { where: { instanceId: instanceId, state: 'active' } }; - return GuaribasInstance.findOne(options); + return await GuaribasInstance.findOne(options); } /** * Loads just one Bot instance.