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

Method GetStaleChats

coderd/database/dbauthz/dbauthz.go:4186–4192  ·  view source on GitHub ↗
(ctx context.Context, staleThreshold time.Time)

Source from the content-addressed store, hash-verified

4184}
4185
4186func (q *querier) GetStaleChats(ctx context.Context, staleThreshold time.Time) ([]database.Chat, error) {
4187 // GetStaleChats is a system-level operation used by the chat processor for recovery.
4188 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceChat); err != nil {
4189 return nil, err
4190 }
4191 return q.db.GetStaleChats(ctx, staleThreshold)
4192}
4193
4194func (q *querier) GetTailnetPeers(ctx context.Context, id uuid.UUID) ([]database.TailnetPeer, error) {
4195 if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceTailnetCoordinator); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetStaleChatsMethod · 0.65

Tested by

no test coverage detected