fix: 🐛 misc
- Collaboration / Invitation type change failed - ChoiceForm items text align left - Webhook fails when choosing GET only
This commit is contained in:
@ -33,12 +33,12 @@ export const useCollaborators = ({
|
||||
export const updateCollaborator = (
|
||||
typebotId: string,
|
||||
userId: string,
|
||||
updates: Partial<CollaboratorsOnTypebots>
|
||||
collaborator: CollaboratorsOnTypebots
|
||||
) =>
|
||||
sendRequest({
|
||||
method: 'PUT',
|
||||
url: `/api/typebots/${typebotId}/collaborators/${userId}`,
|
||||
body: updates,
|
||||
body: collaborator,
|
||||
})
|
||||
|
||||
export const deleteCollaborator = (typebotId: string, userId: string) =>
|
||||
|
@ -35,17 +35,17 @@ export const sendInvitation = (
|
||||
|
||||
export const updateInvitation = (
|
||||
typebotId: string,
|
||||
userId: string,
|
||||
updates: Partial<Invitation>
|
||||
email: string,
|
||||
invitation: Omit<Invitation, 'createdAt'>
|
||||
) =>
|
||||
sendRequest({
|
||||
method: 'PUT',
|
||||
url: `/api/typebots/${typebotId}/invitations/${userId}`,
|
||||
body: updates,
|
||||
url: `/api/typebots/${typebotId}/invitations/${email}`,
|
||||
body: invitation,
|
||||
})
|
||||
|
||||
export const deleteInvitation = (typebotId: string, userId: string) =>
|
||||
export const deleteInvitation = (typebotId: string, email: string) =>
|
||||
sendRequest({
|
||||
method: 'DELETE',
|
||||
url: `/api/typebots/${typebotId}/invitations/${userId}`,
|
||||
url: `/api/typebots/${typebotId}/invitations/${email}`,
|
||||
})
|
||||
|
Reference in New Issue
Block a user