Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
version: 2.1
python_env: &python_env
docker:
- image: cimg/python:3.11.0-browsers
- image: cimg/python:3.11.7-browsers
install_awscli: &install_awscli
name: "Install awscli"
command: |
sudo apt update
sudo apt install jq
sudo apt install python3-pip
sudo apt install jq python3-pip
sudo pip3 install awscli --upgrade
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
Expand Down
2 changes: 1 addition & 1 deletion config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"connectProjectsUrl": "https://connect.topcoder-dev.com/projects/",
"fileServiceEndpoint": "https://api.topcoder-dev.com/v5/files",
"memberServiceEndpoint": "https://api.topcoder-dev.com/v5/members",
"identityServiceEndpoint": "https://api.topcoder-dev.com/v3/",
"identityServiceEndpoint": "https://api.topcoder-dev.com/v5/",
"taasJobApiUrl": "https://api.topcoder-dev.com/v5/jobs",
"sfdcBillingAccountNameField": "Billing_Account_Name__c",
"sfdcBillingAccountMarkupField": "Mark_Up__c",
Expand Down
27 changes: 13 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions src/routes/projectMemberInvites/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,13 @@ module.exports = [
// whom we are inviting, because Member Service has a loose search logic and may return
// users with handles whom we didn't search for
.then((foundUsers) => {
const lowerCaseHandles = invite.handles.map(handle => handle.toLowerCase());
return foundUsers.filter(foundUser => _.includes(lowerCaseHandles, foundUser.handleLower));
if(invite.handles) {
const lowerCaseHandles = invite.handles.map(handle => handle.toLowerCase());
return foundUsers.filter(foundUser => _.includes(lowerCaseHandles, foundUser.handleLower));
}
else {
return []
}
})
.then((inviteUsers) => {
const members = req.context.currentProjectMembers;
Expand Down Expand Up @@ -436,6 +441,7 @@ module.exports = [
}
});
}).catch((err) => {
console.log(err)
if (failed.length) {
res.status(403).json(_.assign({}, { success: [] }, { failed }));
} else next(err);
Expand Down