Skip to content

Commit

Permalink
bug: don't delete user to test if user would be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed Jan 22, 2025
1 parent bfaf305 commit f89aa68
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions backend/pkg/api/handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -755,18 +755,7 @@ func (h *HandlerService) InternalDeleteUser(w http.ResponseWriter, r *http.Reque
handleErr(w, r, newConflictErr("user has an active premium subscription or premium API plan, please cancel them first before deleting the account"))
return
}

err = h.daService.RemoveUser(ctx, userId)
if err != nil {
handleErr(w, r, err)
return
}

err = h.purgeAllSessionsForUser(ctx, userId)
if err != nil {
handleErr(w, r, err)
return
}
// testing what would happen

returnNoContent(w, r)
}
Expand Down

0 comments on commit f89aa68

Please sign in to comment.