From 95549dea66ad374f9ac5ebd591470b2fbe6a0080 Mon Sep 17 00:00:00 2001 From: Joe Gambino Date: Thu, 29 Jul 2021 17:39:42 -0700 Subject: [PATCH 1/2] Send emailList as string --- src/libs/actions/Policy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js index 7c9660333899..ad125f56413b 100644 --- a/src/libs/actions/Policy.js +++ b/src/libs/actions/Policy.js @@ -116,7 +116,7 @@ function removeMembers(members, policyID) { // Make the API call to merge the login into the policy API.Policy_Employees_Remove({ - emailList: members, + emailList: members.join(','), policyID, }) .then((data) => { From 017ebd856cbbc324d59310c6f309c791c8b7c53d Mon Sep 17 00:00:00 2001 From: Joe Gambino Date: Thu, 29 Jul 2021 17:49:36 -0700 Subject: [PATCH 2/2] update comment --- src/libs/actions/Policy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js index ad125f56413b..4965508c8b16 100644 --- a/src/libs/actions/Policy.js +++ b/src/libs/actions/Policy.js @@ -114,7 +114,7 @@ function removeMembers(members, policyID) { // Optimistically remove the members from the policy Onyx.set(key, policy); - // Make the API call to merge the login into the policy + // Make the API call to remove a login from the policy API.Policy_Employees_Remove({ emailList: members.join(','), policyID,