Fix removing oneself from the team not working (#1657)
This commit is contained in:
parent
364a4faa75
commit
fe3e4edb04
@ -6,7 +6,7 @@ export const acceptTeamInvite = async (teamId) => {
|
||||
}
|
||||
export const removeSelfFromTeam = async (teamId) => {
|
||||
const auth = await useAuth()
|
||||
await removeTeamMember(teamId, auth.user.id)
|
||||
await removeTeamMember(teamId, auth.value.user.id)
|
||||
}
|
||||
export const removeTeamMember = async (teamId, userId) => {
|
||||
await useBaseFetch(`team/${teamId}/members/${userId}`, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user