fix(api): enhance NlpValue postCreate unit tests

This commit is contained in:
yassinedorbozgithub 2025-06-17 11:08:29 +01:00
parent 9bb985c37f
commit e69abb64ba

View File

@ -231,8 +231,8 @@ describe('NlpValueRepository', () => {
it('should create and attached a foreign_id to the create nlp value with builtin true', async () => {
nlpValueRepository.eventEmitter.once(
'hook:nlpValue:postCreate',
async (...args) => {
await nlpService.handleValuePostCreate(args[0]);
async (...[created]) => {
await nlpService.handleValuePostCreate(created);
},
);