Correctly build updaters with New
Otherwise we have nil columns
This commit is contained in:
parent
7da653efc6
commit
24a3610c4c
6 changed files with 29 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue