@@ -5,7 +5,7 @@ import { TC_API_URL, PROJECTS_API_URL } from '../config/constants'
55export function getMembersById ( userIds ) {
66 const _userIdArr = _ . map ( userIds , _id => `userId:${ _id } ` )
77 // only requesting certain member attributes
8- const fields = 'userId,handle,photoURL,firstName,lastName,details'
8+ const fields = 'userId,handle,photoURL,firstName,lastName,details,email '
99 const query = _userIdArr . join ( ' OR ' )
1010 const url = `${ TC_API_URL } /v3/members/_search/?fields=`
1111 + encodeURIComponent ( fields )
@@ -20,7 +20,7 @@ export function getMembersById (userIds) {
2020export function getMembersByHandle ( handles ) {
2121 const _handlesArr = _ . map ( handles , _id => `handle:${ _id } ` )
2222 // only requesting certain member attributes
23- const fields = 'userId,handle,photoURL,firstName,lastName,details'
23+ const fields = 'userId,handle,photoURL,firstName,lastName,details,email '
2424 const query = _handlesArr . join ( ' OR ' )
2525 const url = `${ TC_API_URL } /v3/members/_search/?fields=`
2626 + encodeURIComponent ( fields )
0 commit comments