Set the organization on inserted communications
This commit is contained in:
parent
57dc2023cd
commit
431435f8bd
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ func PublicReportUpdateCompliance(ctx context.Context, public_id string, report_
|
|||
compliance_setter.Submitted.Unset()
|
||||
} else {
|
||||
comm := &model.Communication{
|
||||
OrganizationID: report.OrganizationID,
|
||||
SourceReportID: &report.ID,
|
||||
}
|
||||
comm, err := querypublic.CommunicationInsert(ctx, txn, comm)
|
||||
|
|
@ -394,6 +395,7 @@ func publicReportCreate(ctx context.Context, setter_report models.PublicreportRe
|
|||
report_type := setter_report.ReportType.MustGet()
|
||||
if report_type != enums.PublicreportReporttypeCompliance {
|
||||
comm := &model.Communication{
|
||||
OrganizationID: result.OrganizationID,
|
||||
SourceReportID: &result.ID,
|
||||
}
|
||||
comm, err = querypublic.CommunicationInsert(ctx, txn, comm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue