Skip to content

Commit

Permalink
Fix #633: Field dataSources is missing in list data agreement when us…
Browse files Browse the repository at this point in the history
…ing filter includeRevisions
  • Loading branch information
albinpa committed Sep 27, 2024
1 parent 7ffe1b5 commit f4d9684
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func setDataAgreementWithRevisions(dataAgreement dataagreement.DataAgreement, re
dataAgreementWithRevision.Dpia = dataAgreement.Dpia
dataAgreementWithRevision.DataUse = dataAgreement.DataUse
dataAgreementWithRevision.CompatibleWithVersion = dataAgreement.CompatibleWithVersion
dataAgreementWithRevision.DataSources = dataAgreement.DataSources

return dataAgreementWithRevision
}
Expand Down Expand Up @@ -244,6 +245,7 @@ type dataAgreementWithRevisions struct {
Dpia string `json:"dpia"`
CompatibleWithVersion string `json:"compatibleWithVersion"`
Controller dataagreement.Controller `json:"controller"`
DataSources []dataagreement.DataSource `json:"dataSources"`
}

func dataAgreementsWithRevisionsToInterfaceSlice(dataAgreements []dataAgreementWithRevisions) []interface{} {
Expand Down

0 comments on commit f4d9684

Please sign in to comment.