Skip to content

Commit

Permalink
Fix unrelated SQL limit that was breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpom-specter committed Oct 18, 2024
1 parent 5046603 commit 09781df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/api/src/database/analysisrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (s *BloodhoundDB) setAnalysisRequest(ctx context.Context, requestType model
} else {
// Analysis request existed, we only want to overwrite if request is for a deletion request, otherwise ignore additional requests
if analReq.RequestType == model.AnalysisRequestAnalysis && requestType == model.AnalysisRequestDeletion {
updateSql := `update analysis_request_switch set requested_by = ?, request_type = ?, requested_at = ? limit 1;`
updateSql := `update analysis_request_switch set requested_by = ?, request_type = ?, requested_at = ?;`
tx := s.db.WithContext(ctx).Exec(updateSql, requestedBy, requestType, time.Now().UTC())
return tx.Error
}
Expand Down

0 comments on commit 09781df

Please sign in to comment.