parent
2eb26e4e38
commit
2b658ac381
|
@ -59,7 +59,7 @@ export class ContactController {
|
|||
}
|
||||
|
||||
contact = await this.contactRepository.save(contact)
|
||||
return (await this.contactRepository.findOne(contact, { relations: ['groups'] })).toResponse();
|
||||
return (await this.contactRepository.findOne({ id: contact.id }, { relations: ['groups'] })).toResponse();
|
||||
}
|
||||
|
||||
// @Put('/:id')
|
||||
|
|
Loading…
Reference in New Issue