(ctx context.Context, updatedAt time.Time)
| 4162 | } |
| 4163 | |
| 4164 | func (q *querier) GetReplicasUpdatedAfter(ctx context.Context, updatedAt time.Time) ([]database.Replica, error) { |
| 4165 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
| 4166 | return nil, err |
| 4167 | } |
| 4168 | return q.db.GetReplicasUpdatedAfter(ctx, updatedAt) |
| 4169 | } |
| 4170 | |
| 4171 | func (q *querier) GetRunningPrebuiltWorkspaces(ctx context.Context) ([]database.GetRunningPrebuiltWorkspacesRow, error) { |
| 4172 | // This query returns only prebuilt workspaces, but we decided to require permissions for all workspaces. |
nothing calls this directly
no test coverage detected