Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in config list po…
Browse files Browse the repository at this point in the history
…licy revisions
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent 8d6e74e commit d4cf00c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func ConfigListPolicyRevisions(w http.ResponseWriter, r *http.Request) {
return
}

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

0 comments on commit d4cf00c

Please sign in to comment.