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:
yassinedorbozgithub 2025-06-17 11:50:01 +01:00
commit e30f077238
2 changed files with 6 additions and 6 deletions

View File

@ -222,10 +222,10 @@ describe('NlpEntityRepository', () => {
name: 'test2',
builtin: true,
});
const intentNlpEntity = await nlpEntityRepository.findOne(result.id);
const nlpEntity = await nlpEntityRepository.findOne(result.id);
expect(intentNlpEntity?.foreign_id).toBeUndefined();
expect(intentNlpEntity).toEqualPayload(result);
expect(nlpEntity?.foreign_id).toBeUndefined();
expect(nlpEntity).toEqualPayload(result);
});
});

View File

@ -244,10 +244,10 @@ describe('NlpValueRepository', () => {
value: 'nlpValueTest2',
builtin: true,
});
const intentNlpEntity = await nlpValueRepository.findOne(result.id);
const nlpValue = await nlpValueRepository.findOne(result.id);
expect(intentNlpEntity?.foreign_id).toBeUndefined();
expect(intentNlpEntity).toEqualPayload(result);
expect(nlpValue?.foreign_id).toBeUndefined();
expect(nlpValue).toEqualPayload(result);
});
});