(ctx context.Context, arg database.UpsertTelemetryItemParams)
| 8320 | } |
| 8321 | |
| 8322 | func (q *querier) UpsertTelemetryItem(ctx context.Context, arg database.UpsertTelemetryItemParams) error { |
| 8323 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil { |
| 8324 | return err |
| 8325 | } |
| 8326 | return q.db.UpsertTelemetryItem(ctx, arg) |
| 8327 | } |
| 8328 | |
| 8329 | func (q *querier) UpsertTemplateUsageStats(ctx context.Context) error { |
| 8330 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected