Update multi-user invite endpoint
This commit is contained in:
parent
b60a1ad7b0
commit
115ef53f82
|
@ -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: {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue