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 () => {
|
||||
nlpValueRepository.eventEmitter.once(
|
||||
'hook:nlpEntity:preDelete',
|
||||
async (...args) => {
|
||||
await nlpService.handleEntityDelete(args[0], args[1]);
|
||||
async (...[query, criteria]) => {
|
||||
await nlpService.handleEntityDelete(query, criteria);
|
||||
},
|
||||
);
|
||||
const intentNlpEntity = await nlpEntityRepository.findOne({
|
||||
|
@ -167,8 +167,8 @@ describe('NlpValueRepository', () => {
|
||||
it('should delete a nlp Value', async () => {
|
||||
nlpValueRepository.eventEmitter.once(
|
||||
'hook:nlpValue:preDelete',
|
||||
async (...args) => {
|
||||
await nlpService.handleValueDelete(args[0], args[1]);
|
||||
async (...[query, criteria]) => {
|
||||
await nlpService.handleValueDelete(query, criteria);
|
||||
},
|
||||
);
|
||||
const result = await nlpValueRepository.deleteOne(nlpValues[1].id);
|
||||
|
Loading…
Reference in New Issue
Block a user