mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): rename props
This commit is contained in:
parent
dad6b55789
commit
3ae6b5bc29
@ -118,8 +118,8 @@ describe('NlpEntityRepository', () => {
|
|||||||
it('should delete a nlp entity', async () => {
|
it('should delete a nlp entity', async () => {
|
||||||
nlpValueRepository.eventEmitter.once(
|
nlpValueRepository.eventEmitter.once(
|
||||||
'hook:nlpEntity:preDelete',
|
'hook:nlpEntity:preDelete',
|
||||||
async (...args) => {
|
async (...[query, criteria]) => {
|
||||||
await nlpService.handleEntityDelete(args[0], args[1]);
|
await nlpService.handleEntityDelete(query, criteria);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
const intentNlpEntity = await nlpEntityRepository.findOne({
|
const intentNlpEntity = await nlpEntityRepository.findOne({
|
||||||
|
@ -167,8 +167,8 @@ describe('NlpValueRepository', () => {
|
|||||||
it('should delete a nlp Value', async () => {
|
it('should delete a nlp Value', async () => {
|
||||||
nlpValueRepository.eventEmitter.once(
|
nlpValueRepository.eventEmitter.once(
|
||||||
'hook:nlpValue:preDelete',
|
'hook:nlpValue:preDelete',
|
||||||
async (...args) => {
|
async (...[query, criteria]) => {
|
||||||
await nlpService.handleValueDelete(args[0], args[1]);
|
await nlpService.handleValueDelete(query, criteria);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
const result = await nlpValueRepository.deleteOne(nlpValues[1].id);
|
const result = await nlpValueRepository.deleteOne(nlpValues[1].id);
|
||||||
|
Loading…
Reference in New Issue
Block a user