mirror of
https://github.com/hexastack/hexabot
synced 2024-11-22 09:38:13 +00:00
Merge pull request #355 from Hexastack/fix/nlp-format-await
fix: add missing await for NLP format
This commit is contained in:
commit
d44f8ee02c
@ -97,7 +97,7 @@ export class NlpSampleController extends BaseController<
|
|||||||
);
|
);
|
||||||
const entities = await this.nlpEntityService.findAllAndPopulate();
|
const entities = await this.nlpEntityService.findAllAndPopulate();
|
||||||
const helper = await this.helperService.getDefaultNluHelper();
|
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
|
// Sending the JSON data as a file
|
||||||
const buffer = Buffer.from(JSON.stringify(result));
|
const buffer = Buffer.from(JSON.stringify(result));
|
||||||
|
Loading…
Reference in New Issue
Block a user