Correctly build updaters with New

Otherwise we have nil columns
This commit is contained in:
Eli Ribble 2026-05-08 22:22:52 +00:00
parent 7da653efc6
commit 24a3610c4c
No known key found for this signature in database
6 changed files with 29 additions and 7 deletions

View file

@ -152,7 +152,7 @@ func SignalCreateFromPublicreport(ctx context.Context, user User, report_id stri
if err != nil {
return nil, fmt.Errorf("create signal: %w", err)
}
report_updater := querypublicreport.ReportUpdater{}
report_updater := querypublicreport.NewReportUpdater()
now := time.Now()
report_updater.Model.Reviewed = &now
report_updater.Set(tablepublicreport.Report.Reviewed)