(ctx context.Context, arg database.UpdateWorkspaceAgentDisplayAppsByIDParams)
| 7732 | } |
| 7733 | |
| 7734 | func (q *querier) UpdateWorkspaceAgentDisplayAppsByID(ctx context.Context, arg database.UpdateWorkspaceAgentDisplayAppsByIDParams) error { |
| 7735 | workspace, err := q.db.GetWorkspaceByAgentID(ctx, arg.ID) |
| 7736 | if err != nil { |
| 7737 | return err |
| 7738 | } |
| 7739 | |
| 7740 | if err := q.authorizeContext(ctx, policy.ActionUpdateAgent, workspace); err != nil { |
| 7741 | return err |
| 7742 | } |
| 7743 | |
| 7744 | return q.db.UpdateWorkspaceAgentDisplayAppsByID(ctx, arg) |
| 7745 | } |
| 7746 | |
| 7747 | func (q *querier) UpdateWorkspaceAgentLifecycleStateByID(ctx context.Context, arg database.UpdateWorkspaceAgentLifecycleStateByIDParams) error { |
| 7748 | workspace, err := q.db.GetWorkspaceByAgentID(ctx, arg.ID) |
nothing calls this directly
no test coverage detected