elioria-sst-x
    Preparing search index...

    Class SupabaseOHCalculationResultRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByAssessment.

      Parameters

      • assessmentId: string

        The assessmentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<OHCalculationResult[]>

      The function result.

      Objective: In module packages/db/src/repositories/oh-calculation-result.repository.ts, retrieve data through findByAssessment.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<OHCalculationResult | null>

      The function result.

      Objective: In module packages/db/src/repositories/oh-calculation-result.repository.ts, retrieve data through findById.

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db .select() .from(ohCalculationResults) .where.

    • Generated

      Returns the result of findCurrentByAssessment.

      Parameters

      • assessmentId: string

        The assessmentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<OHCalculationResult | null>

      The function result.

      Objective: In module packages/db/src/repositories/oh-calculation-result.repository.ts, retrieve data through findCurrentByAssessment.

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

    • Generated

      Executes markStale.

      Parameters

      • assessmentId: string

        The assessmentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<number>

      The function result.

      Objective: In module packages/db/src/repositories/oh-calculation-result.repository.ts, run markStale.

      Behavior: Async; accepts assessmentId and tenantId; returns a value; invokes this.db .update(ohCalculationResults) .set({ status: "STALE".