elioria-sst-x
    Preparing search index...

    Class SupabaseAiUsageAttemptRepository

    Persistent UsageAttempt backed by ai_usage_attempts table. Idempotent on (requestId, tenantId, attemptNumber).

    Implements

    Index
    db: PostgresJsDatabase<packages/db/src/schema> & {}

    The db value.

    • Generated

      Returns the result of getByRequestId.

      Parameters

      • requestId: string

        The requestId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<UsageAttemptEntry[]>

      The function result.

      Objective: In module packages/db/src/repositories/ai-usage-attempt.repository.ts, retrieve data through getByRequestId.

      Behavior: Async; accepts requestId and tenantId; returns a value; invokes this.db .select() .from(aiUsageAttempts) .where( and( eq(aiU.