mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): use helperService getDefaultHelper
This commit is contained in:
parent
e69abb64ba
commit
48c73f7604
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user