MCPcopy Index your code
hub / github.com/coder/coder / GetActiveChatsByAgentID

Method GetActiveChatsByAgentID

coderd/database/dbauthz/dbauthz.go:2679–2681  ·  view source on GitHub ↗
(ctx context.Context, agentID uuid.UUID)

Source from the content-addressed store, hash-verified

2677}
2678
2679func (q *querier) GetActiveChatsByAgentID(ctx context.Context, agentID uuid.UUID) ([]database.Chat, error) {
2680 return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.GetActiveChatsByAgentID)(ctx, agentID)
2681}
2682
2683func (q *querier) GetActivePresetPrebuildSchedules(ctx context.Context) ([]database.TemplateVersionPresetPrebuildSchedule, error) {
2684 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceTemplate.All()); err != nil {

Callers

nothing calls this directly

Calls 1

fetchWithPostFilterFunction · 0.85

Tested by

no test coverage detected