Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in config read da…
Browse files Browse the repository at this point in the history
…taagreement
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent 853bde8 commit c3ccba2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func ConfigReadDataAgreement(w http.ResponseWriter, r *http.Request) {
// If data agreement is published then:
// a. Fetch latest revision
if da.Active {
rev, err = revision.GetLatestByDataAgreementId(dataAgreementId)
rev, err = revision.GetLatestByObjectIdAndSchemaName(dataAgreementId, config.DataAgreement)
if err != nil {
m := fmt.Sprintf("Failed to fetch revision: %v", dataAgreementId)
common.HandleErrorV2(w, http.StatusBadRequest, m, err)
Expand Down

0 comments on commit c3ccba2

Please sign in to comment.