(ctx context.Context, arg database.CountAIBridgeSessionsParams)
| 1805 | } |
| 1806 | |
| 1807 | func (q *querier) CountAIBridgeSessions(ctx context.Context, arg database.CountAIBridgeSessionsParams) (int64, error) { |
| 1808 | prep, err := prepareSQLFilter(ctx, q.auth, policy.ActionRead, rbac.ResourceAibridgeInterception.Type) |
| 1809 | if err != nil { |
| 1810 | return 0, xerrors.Errorf("(dev error) prepare sql filter: %w", err) |
| 1811 | } |
| 1812 | return q.db.CountAuthorizedAIBridgeSessions(ctx, arg, prep) |
| 1813 | } |
| 1814 | |
| 1815 | func (q *querier) CountAuditLogs(ctx context.Context, arg database.CountAuditLogsParams) (int64, error) { |
| 1816 | // Shortcut if the user is an owner. The SQL filter is noticeable, |
nothing calls this directly
no test coverage detected