From 833a2c384da15a18ad046568ef0f234f76c375d9 Mon Sep 17 00:00:00 2001 From: Mohamed Marrouchi Date: Thu, 21 Nov 2024 15:12:11 +0100 Subject: [PATCH] fix: add missing await --- api/src/nlp/controllers/nlp-sample.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));