Implemented group contacts feature/104-contacts #108

Merged
niggl merged 29 commits from feature/104-contacts into dev 2021-01-19 19:08:56 +00:00
Showing only changes of commit 321d291b4b - Show all commits

View File

@ -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')