Skip to content

Commit 5f1f99f

Browse files
author
vikasrohit
authored
Using handleLower filter instead of handle
Should fix the issue with a particular copilot handle to be added to the team
1 parent 5e9311a commit 5f1f99f

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
@@ -18,7 +18,7 @@ export function getMembersById (userIds) {
1818
}
1919

2020
export function getMembersByHandle (handles) {
21-
const _handlesArr = _.map(handles, _id => `handle:${_id}`)
21+
const _handlesArr = _.map(handles, _handle => `handleLower:${_handle.toLowerCase()}`)
2222
// only requesting certain member attributes
2323
const fields = 'userId,handle,photoURL,firstName,lastName,details,email'
2424
const query = _handlesArr.join(' OR ')
@@ -85,4 +85,4 @@ export function getProjectMember(projectId, memberId) {
8585
.then( resp => {
8686
return resp.data
8787
})
88-
}
88+
}

0 commit comments

Comments
 (0)