mirror of
https://github.com/hexastack/hexabot
synced 2024-11-22 01:27:41 +00:00
fix: add missing await
This commit is contained in:
parent
7e5884a82f
commit
833a2c384d
@ -97,7 +97,7 @@ export class NlpSampleController extends BaseController<
|
||||
);
|
||||
const entities = await this.nlpEntityService.findAllAndPopulate();
|
||||
const helper = await this.helperService.getDefaultNluHelper();
|
||||
const result = helper.format(samples, entities);
|
||||
const result = await helper.format(samples, entities);
|
||||
|
||||
// Sending the JSON data as a file
|
||||
const buffer = Buffer.from(JSON.stringify(result));
|
||||
|
Loading…
Reference in New Issue
Block a user