(ctx context.Context, arg database.UpdateWorkspaceAgentConnectionByIDParams)
| 7712 | } |
| 7713 | |
| 7714 | func (q *querier) UpdateWorkspaceAgentConnectionByID(ctx context.Context, arg database.UpdateWorkspaceAgentConnectionByIDParams) error { |
| 7715 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil { |
| 7716 | return err |
| 7717 | } |
| 7718 | return q.db.UpdateWorkspaceAgentConnectionByID(ctx, arg) |
| 7719 | } |
| 7720 | |
| 7721 | func (q *querier) UpdateWorkspaceAgentDirectoryByID(ctx context.Context, arg database.UpdateWorkspaceAgentDirectoryByIDParams) error { |
| 7722 | workspace, err := q.db.GetWorkspaceByAgentID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected