add email field to contact serializer

This commit is contained in:
Maciej Szlosarczyk 2020-06-12 13:34:31 +03:00
parent 0bc4f78d00
commit 28695f4c22
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
4 changed files with 28 additions and 9 deletions

View file

@ -58,7 +58,7 @@ module Serializers
array_of_contacts = []
contact_pool.map do |contact|
array_of_contacts.push(name: contact.name, id: contact.uuid)
array_of_contacts.push(name: contact.name, id: contact.uuid, email: contact.email)
end
array_of_contacts