UpdateWorkspaceBuildCostByID is used by the provisioning system to update the cost of a workspace build.
(ctx context.Context, arg database.UpdateWorkspaceBuildCostByIDParams)
| 7859 | |
| 7860 | // UpdateWorkspaceBuildCostByID is used by the provisioning system to update the cost of a workspace build. |
| 7861 | func (q *querier) UpdateWorkspaceBuildCostByID(ctx context.Context, arg database.UpdateWorkspaceBuildCostByIDParams) error { |
| 7862 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil { |
| 7863 | return err |
| 7864 | } |
| 7865 | return q.db.UpdateWorkspaceBuildCostByID(ctx, arg) |
| 7866 | } |
| 7867 | |
| 7868 | func (q *querier) UpdateWorkspaceBuildDeadlineByID(ctx context.Context, arg database.UpdateWorkspaceBuildDeadlineByIDParams) error { |
| 7869 | build, err := q.db.GetWorkspaceBuildByID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected