diff --git a/api/src/nlp/controllers/nlp-sample.controller.ts b/api/src/nlp/controllers/nlp-sample.controller.ts index 5dbc519..492234a 100644 --- a/api/src/nlp/controllers/nlp-sample.controller.ts +++ b/api/src/nlp/controllers/nlp-sample.controller.ts @@ -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));