Skip to content

Commit

Permalink
fix(core.gbapp): Fixing missing await calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Nov 9, 2020
1 parent 7e001a5 commit e0b18c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core.gbapp/services/GBCoreService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -243,7 +243,7 @@ export class GBCoreService implements IGBCoreService {
public async loadInstanceById(instanceId: number): Promise<IGBInstance> {
const options = { where: { instanceId: instanceId, state: 'active' } };

return GuaribasInstance.findOne(options);
return await GuaribasInstance.findOne(options);
}
/**
* Loads just one Bot instance.
Expand Down

0 comments on commit e0b18c0

Please sign in to comment.