(ctx context.Context, arg database.BatchUpdateWorkspaceAgentMetadataParams)
| 1680 | } |
| 1681 | |
| 1682 | func (q *querier) BatchUpdateWorkspaceAgentMetadata(ctx context.Context, arg database.BatchUpdateWorkspaceAgentMetadataParams) error { |
| 1683 | // Could be any workspace agent and checking auth to each workspace agent is overkill for |
| 1684 | // the purpose of this function. |
| 1685 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceWorkspace.All()); err != nil { |
| 1686 | return err |
| 1687 | } |
| 1688 | return q.db.BatchUpdateWorkspaceAgentMetadata(ctx, arg) |
| 1689 | } |
| 1690 | |
| 1691 | func (q *querier) BatchUpdateWorkspaceLastUsedAt(ctx context.Context, arg database.BatchUpdateWorkspaceLastUsedAtParams) error { |
| 1692 | // Could be any workspace and checking auth to each workspace is overkill for |
nothing calls this directly
no test coverage detected