elioria-sst-x
    Preparing search index...

    Class SupabaseApiUsageLogRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByKey.

      Parameters

      • apiKeyId: string

        The apiKeyId value.

      • limit: number = 100

        The limit value.

      Returns Promise<ApiUsageLog[]>

      The function result.

      Objective: In module packages/db/src/repositories/api-keys.repository.ts, retrieve data through findByKey.

      Behavior: Async; accepts apiKeyId and limit; returns a value; invokes this.db .select() .from(apiUsageLogs) .where(eq(apiUsageLogs.