Skip to content

Commit

Permalink
don't try to delete approved user from web check
Browse files Browse the repository at this point in the history
switched request to check-only and doesn't make new approved user
  • Loading branch information
umputun committed Dec 31, 2024
1 parent 806066e commit 22d44eb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/webapi/webapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,6 @@ func (s *Server) checkHandler(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Error rendering result", http.StatusInternalServerError)
return
}

// the successful check may add user to the approved list. we want to avoid it
if err := s.Detector.RemoveApprovedUser(req.UserID); err != nil {
log.Printf("[DEBUG] failed to clenaup after check: %v", err)
}
}

// getDynamicSamplesHandler handles GET /samples request. It returns dynamic samples both for spam and ham.
Expand Down

0 comments on commit 22d44eb

Please sign in to comment.