fix(api): use helperService getDefaultHelper

This commit is contained in:
yassinedorbozgithub 2025-06-17 11:16:05 +01:00
parent e69abb64ba
commit 48c73f7604

View File

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