Skip to content

Commit

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

} else {
revisionResp, err = revision.GetLatestByPolicyId(policyId)
revisionResp, err = revision.GetLatestByObjectIdAndSchemaName(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 d241c99

Please sign in to comment.