Merge branch '1132-issue---api-make-sure-hookentityprepostcreate-is-used-across-the-board' into 1134-issue---api-make-sure-hookentityprepostupdate-is-used-across-the-board

This commit is contained in:
yassinedorbozgithub 2025-06-17 11:16:33 +01:00
commit 3ce40840f6

View File

@ -168,7 +168,9 @@ export class NlpService {
if (!created.builtin) {
// Synchonize new value with NLP provider
try {
const helper = await this.helperService.getDefaultNluHelper();
const helper = await this.helperService.getDefaultHelper(
HelperType.NLU,
);
const foreignId = await helper.addValue(created);
this.logger.debug('New value successfully synced!', foreignId);
await this.nlpValueService.updateOne(