(ctx context.Context, arg database.UpdateWorkspaceAgentDirectoryByIDParams)
| 7719 | } |
| 7720 | |
| 7721 | func (q *querier) UpdateWorkspaceAgentDirectoryByID(ctx context.Context, arg database.UpdateWorkspaceAgentDirectoryByIDParams) error { |
| 7722 | workspace, err := q.db.GetWorkspaceByAgentID(ctx, arg.ID) |
| 7723 | if err != nil { |
| 7724 | return err |
| 7725 | } |
| 7726 | |
| 7727 | if err := q.authorizeContext(ctx, policy.ActionUpdateAgent, workspace); err != nil { |
| 7728 | return err |
| 7729 | } |
| 7730 | |
| 7731 | return q.db.UpdateWorkspaceAgentDirectoryByID(ctx, arg) |
| 7732 | } |
| 7733 | |
| 7734 | func (q *querier) UpdateWorkspaceAgentDisplayAppsByID(ctx context.Context, arg database.UpdateWorkspaceAgentDisplayAppsByIDParams) error { |
| 7735 | workspace, err := q.db.GetWorkspaceByAgentID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected