Skip to content

Commit

Permalink
fix delete account
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Aug 25, 2024
1 parent 3a61b7c commit d7573bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/actions/account/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ export async function deleteAccount() {
'',
true,
'/deleteAccount',
ExecutionMethod.POST
ExecutionMethod.DELETE
)
await account.deleteSessions()
return redirect('/')
} catch (error) {
console.log(error.status + ' ' + error.message)
return JSON.parse(JSON.stringify(error))
}
}

0 comments on commit d7573bd

Please sign in to comment.