Update multi-user invite endpoint

This commit is contained in:
Andrew Kingston 2022-08-03 19:20:33 +01:00
parent b60a1ad7b0
commit 115ef53f82
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ export const buildUserEndpoints = API => ({
*/
inviteUsers: async users => {
return await API.post({
url: "/api/global/users/inviteMultiple",
url: "/api/global/users/multi/invite",
body: users.map(user => ({
email: user.email,
userInfo: {

View File

@ -81,7 +81,7 @@ router
controller.invite
)
.post(
"/api/global/users/inviteMultiple",
"/api/global/users/multi/invite",
adminOnly,
buildInviteMultipleValidation(),
controller.inviteMultiple