Skip to content

Commit

Permalink
Fix #610 Fetch revisions by objectId and schemaName in service create…
Browse files Browse the repository at this point in the history
… blank signature object
  • Loading branch information
albinpa authored and georgepadayatti committed Jan 9, 2024
1 parent d241c99 commit 42106c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func ServiceCreateBlankSignature(w http.ResponseWriter, r *http.Request) {
darRepo.Init(organisationId)

// Get latest revision for data agreement record
daRecordRevision, err := revision.GetLatestByObjectId(dataAgreementRecordId)
daRecordRevision, err := revision.GetLatestByObjectIdAndSchemaName(dataAgreementRecordId, config.DataAgreementRecord)
if err != nil {
m := fmt.Sprintf("Failed to fetch revision for data agreement record: %v", dataAgreementRecordId)
common.HandleErrorV2(w, http.StatusInternalServerError, m, err)
Expand Down

0 comments on commit 42106c4

Please sign in to comment.