(ctx context.Context, arg database.GetWorkspaceAppByAgentIDAndSlugParams)
| 5072 | } |
| 5073 | |
| 5074 | func (q *querier) GetWorkspaceAppByAgentIDAndSlug(ctx context.Context, arg database.GetWorkspaceAppByAgentIDAndSlugParams) (database.WorkspaceApp, error) { |
| 5075 | // If we can fetch the workspace, we can fetch the apps. Use the authorized call. |
| 5076 | if _, err := q.GetWorkspaceByAgentID(ctx, arg.AgentID); err != nil { |
| 5077 | return database.WorkspaceApp{}, err |
| 5078 | } |
| 5079 | |
| 5080 | return q.db.GetWorkspaceAppByAgentIDAndSlug(ctx, arg) |
| 5081 | } |
| 5082 | |
| 5083 | func (q *querier) GetWorkspaceAppStatusesByAppIDs(ctx context.Context, ids []uuid.UUID) ([]database.WorkspaceAppStatus, error) { |
| 5084 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected