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 => { inviteUsers: async users => {
return await API.post({ return await API.post({
url: "/api/global/users/inviteMultiple", url: "/api/global/users/multi/invite",
body: users.map(user => ({ body: users.map(user => ({
email: user.email, email: user.email,
userInfo: { userInfo: {

View File

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