elioria-sst-x
    Preparing search index...

    Class SupabasePendingReviewRepository

    Implements

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

    The db value.

    • Generated

      Executes countPending.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<number>

      The function result.

      Objective: In module packages/db/src/repositories/pending-review.repository.ts, run countPending.

      Behavior: Async; accepts tenantId; returns a value; invokes this.db .select({ count: sql<number>count(*) }) .from(pend.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      • Optionalfilters: { gheId?: string; status?: ReviewStatus }

        The filters value.

      Returns Promise<PendingReview[]>

      The function result.

      Objective: In module packages/db/src/repositories/pending-review.repository.ts, retrieve data through findByTenant.

      Behavior: Async; accepts tenantId and filters; returns a value; invokes eq.

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: { dismissalReason?: string; reviewedBy?: string; status: ReviewStatus }

        The data value.

      Returns Promise<PendingReview | null>

      The function result.

      Objective: In module packages/db/src/repositories/pending-review.repository.ts, run update.

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db .update(pendingReviews) .set({ status: data.status, .