Fixing #4522 - frontend-core refactor changed how some of these endpoints were used.
This commit is contained in:
parent
1b124bfb56
commit
e5289ddcee
3 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,7 @@
|
|||
let createUserModal
|
||||
let basicOnboardingModal
|
||||
|
||||
function openBasicOnoboardingModal() {
|
||||
function openBasicOnboardingModal() {
|
||||
createUserModal.hide()
|
||||
basicOnboardingModal.show()
|
||||
}
|
||||
|
@ -91,7 +91,7 @@
|
|||
</Layout>
|
||||
|
||||
<Modal bind:this={createUserModal}>
|
||||
<AddUserModal on:change={openBasicOnoboardingModal} />
|
||||
<AddUserModal on:change={openBasicOnboardingModal} />
|
||||
</Modal>
|
||||
<Modal bind:this={basicOnboardingModal}><BasicOnboardingModal {email} /></Modal>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ export function createUsersStore() {
|
|||
}
|
||||
|
||||
async function invite({ email, builder, admin }) {
|
||||
await API.inviteUser({
|
||||
return API.inviteUser({
|
||||
email,
|
||||
builder,
|
||||
admin,
|
||||
|
@ -19,7 +19,7 @@ export function createUsersStore() {
|
|||
}
|
||||
|
||||
async function acceptInvite(inviteCode, password) {
|
||||
await API.acceptInvite({
|
||||
return API.acceptInvite({
|
||||
inviteCode,
|
||||
password,
|
||||
})
|
||||
|
|
|
@ -113,11 +113,11 @@ export const buildUserEndpoints = API => ({
|
|||
},
|
||||
|
||||
/**
|
||||
* Accepts an invitation to join the platform and creates a user.
|
||||
* Accepts an invite to join the platform and creates a user.
|
||||
* @param inviteCode the invite code sent in the email
|
||||
* @param password the password for the newly created user
|
||||
*/
|
||||
acceptInvitation: async ({ inviteCode, password }) => {
|
||||
acceptInvite: async ({ inviteCode, password }) => {
|
||||
return await API.post({
|
||||
url: "/api/global/users/invite/accept",
|
||||
body: {
|
||||
|
|
Loading…
Reference in a new issue