(ctx context.Context, arg database.UpdatePresetsLastInvalidatedAtParams)
| 7059 | } |
| 7060 | |
| 7061 | func (q *querier) UpdatePresetsLastInvalidatedAt(ctx context.Context, arg database.UpdatePresetsLastInvalidatedAtParams) ([]database.UpdatePresetsLastInvalidatedAtRow, error) { |
| 7062 | // Fetch template to check authorization |
| 7063 | template, err := q.db.GetTemplateByID(ctx, arg.TemplateID) |
| 7064 | if err != nil { |
| 7065 | return nil, err |
| 7066 | } |
| 7067 | |
| 7068 | if err := q.authorizeContext(ctx, policy.ActionUpdate, template); err != nil { |
| 7069 | return nil, err |
| 7070 | } |
| 7071 | |
| 7072 | return q.db.UpdatePresetsLastInvalidatedAt(ctx, arg) |
| 7073 | } |
| 7074 | |
| 7075 | func (q *querier) UpdateProvisionerDaemonLastSeenAt(ctx context.Context, arg database.UpdateProvisionerDaemonLastSeenAtParams) error { |
| 7076 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceProvisionerDaemon); err != nil { |
nothing calls this directly
no test coverage detected