Skip to content

Commit fe1c2b9

Browse files
committed
Revert "fix: don't request "email" for members"
This reverts commit 4b499a3.
1 parent 8a090fe commit fe1c2b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/projectMembers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TC_API_URL, PROJECTS_API_URL } from '../config/constants'
55
export 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) {
2020
export 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

Comments
 (0)