(ctx context.Context)
| 2670 | } |
| 2671 | |
| 2672 | func (q *querier) GetActiveAISeatCount(ctx context.Context) (int64, error) { |
| 2673 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceAiSeat); err != nil { |
| 2674 | return 0, err |
| 2675 | } |
| 2676 | return q.db.GetActiveAISeatCount(ctx) |
| 2677 | } |
| 2678 | |
| 2679 | func (q *querier) GetActiveChatsByAgentID(ctx context.Context, agentID uuid.UUID) ([]database.Chat, error) { |
| 2680 | return fetchWithPostFilter(q.auth, policy.ActionRead, q.db.GetActiveChatsByAgentID)(ctx, agentID) |
nothing calls this directly
no test coverage detected