Merge pull request #355 from Hexastack/fix/nlp-format-await
Some checks failed
Build and Push Docker Images / paths-filter (push) Failing after 1m21s
Build and Push Docker Images / build-and-push (push) Has been skipped

fix: add missing await for NLP format
This commit is contained in:
Med Marrouchi 2024-11-21 16:06:29 +01:00 committed by GitHub
commit d44f8ee02c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));