Skip to content

Commit

Permalink
Fixing #4522 - frontend-core refactor changed how some of these endpo…
Browse files Browse the repository at this point in the history
…ints were used.
  • Loading branch information
mike12345567 committed Feb 16, 2022
1 parent 7bac5d5 commit f872e29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
let createUserModal
let basicOnboardingModal
function openBasicOnoboardingModal() {
function openBasicOnboardingModal() {
createUserModal.hide()
basicOnboardingModal.show()
}
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions packages/builder/src/stores/portal/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export function createUsersStore() {
}

async function invite({ email, builder, admin }) {
await API.inviteUser({
return API.inviteUser({
email,
builder,
admin,
})
}

async function acceptInvite(inviteCode, password) {
await API.acceptInvite({
return API.acceptInvite({
inviteCode,
password,
})
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend-core/src/api/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f872e29

Please sign in to comment.