Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in config delete …
Browse files Browse the repository at this point in the history
…policy
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent c3ccba2 commit 8d6e74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/v2/config/policy/config_delete_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func ConfigDeletePolicy(w http.ResponseWriter, r *http.Request) {
return
}

currentRevision, err := revision.GetLatestByPolicyId(policyId)
currentRevision, err := revision.GetLatestByObjectIdAndSchemaName(policyId, config.Policy)
if err != nil {
m := fmt.Sprintf("Failed to fetch revisions: %v", policyId)
common.HandleErrorV2(w, http.StatusInternalServerError, m, err)
Expand Down

0 comments on commit 8d6e74e

Please sign in to comment.