Fixed column not getting resolved

ref #104
This commit is contained in:
Nicolai Ort 2021-01-19 17:52:51 +01:00
parent 2eb26e4e38
commit 2b658ac381
1 changed files with 1 additions and 1 deletions

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