From 5f1f99fbd84f78889af04ca70faf948c2d8034a6 Mon Sep 17 00:00:00 2001 From: vikasrohit Date: Mon, 13 Jan 2020 14:56:20 +0530 Subject: [PATCH] Using handleLower filter instead of handle Should fix the issue with a particular copilot handle to be added to the team --- src/api/projectMembers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/projectMembers.js b/src/api/projectMembers.js index 0484aff02..8ceba034b 100644 --- a/src/api/projectMembers.js +++ b/src/api/projectMembers.js @@ -18,7 +18,7 @@ export function getMembersById (userIds) { } export function getMembersByHandle (handles) { - const _handlesArr = _.map(handles, _id => `handle:${_id}`) + const _handlesArr = _.map(handles, _handle => `handleLower:${_handle.toLowerCase()}`) // only requesting certain member attributes const fields = 'userId,handle,photoURL,firstName,lastName,details,email' const query = _handlesArr.join(' OR ') @@ -85,4 +85,4 @@ export function getProjectMember(projectId, memberId) { .then( resp => { return resp.data }) -} \ No newline at end of file +}