diff --git a/api/src/nlp/repositories/nlp-value.repository.spec.ts b/api/src/nlp/repositories/nlp-value.repository.spec.ts index 41ae2b1c..48689727 100644 --- a/api/src/nlp/repositories/nlp-value.repository.spec.ts +++ b/api/src/nlp/repositories/nlp-value.repository.spec.ts @@ -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); }, );