(opts ReporterOptions)
| 59 | } |
| 60 | |
| 61 | func NewReporter(opts ReporterOptions) *Reporter { |
| 62 | return &Reporter{opts: opts} |
| 63 | } |
| 64 | |
| 65 | func (r *Reporter) ReportAppStats(ctx context.Context, stats []workspaceapps.StatsReport) error { |
| 66 | err := r.opts.Database.InTx(func(tx database.Store) error { |
no outgoing calls