Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in service list d…
Browse files Browse the repository at this point in the history
…ataattributes for dataagreement
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent 0a70206 commit e6bce1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func ServiceListDataAttributesForDataAgreement(w http.ResponseWriter, r *http.Re
var daRevision revision.Revision
if err != nil && errors.Is(err, RevisionIDIsMissingError) {

daRevision, err = revision.GetLatestByDataAgreementId(da.Id)
daRevision, err = revision.GetLatestByObjectIdAndSchemaName(da.Id, config.DataAgreement)
if err != nil {
m := fmt.Sprintf("Failed to fetch data agreement revision: %v", dataAgreementId)
common.HandleErrorV2(w, http.StatusInternalServerError, m, err)
Expand Down

0 comments on commit e6bce1d

Please sign in to comment.