Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in verification f…
Browse files Browse the repository at this point in the history
…etch dataagreement record
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent 5901fa4 commit c661f06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func ServiceVerificationFetchDataAgreementRecord(w http.ResponseWriter, r *http.
return
}

currentRevision, err := revision.GetLatestByObjectId(daRecord.Id)
currentRevision, err := revision.GetLatestByObjectIdAndSchemaName(daRecord.Id, config.DataAgreementRecord)
if err != nil {
m := "Failed to fetch revision for data agreement record"
common.HandleErrorV2(w, http.StatusInternalServerError, m, err)
Expand Down

0 comments on commit c661f06

Please sign in to comment.