mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
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:
commit
3ce40840f6
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user