Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in service read d…
Browse files Browse the repository at this point in the history
…ataagreement
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent e6bce1d commit 152a2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/v2/service/service_read_dataagreement.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func ServiceReadDataAgreement(w http.ResponseWriter, r *http.Request) {
}
var revisionResp revision.Revision

revisionResp, err = revision.GetLatestByDataAgreementId(da.Id)
revisionResp, err = revision.GetLatestByObjectIdAndSchemaName(da.Id, 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 152a2ff

Please sign in to comment.