Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in config list da…
Browse files Browse the repository at this point in the history
…taagreement revisions
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent 99493ef commit 72909c1
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 ConfigListDataAgreementRevisions(w http.ResponseWriter, r *http.Request) {
return
}

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

0 comments on commit 72909c1

Please sign in to comment.