diff --git a/internal/handler/v2/service/service_read_dataagreement.go b/internal/handler/v2/service/service_read_dataagreement.go index 179da5a..5051e7a 100644 --- a/internal/handler/v2/service/service_read_dataagreement.go +++ b/internal/handler/v2/service/service_read_dataagreement.go @@ -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)