fix: add missing await

This commit is contained in:
Mohamed Marrouchi 2024-11-21 15:12:11 +01:00
parent 7e5884a82f
commit 833a2c384d

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