elioria-sst-x
    Preparing search index...

    Class SupabaseRiskAssessmentRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByFinding.

      Parameters

      • findingId: string

        The findingId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskAssessment[]>

      The function result.

      Objective: In module packages/db/src/repositories/risk-assessment.repository.ts, retrieve data through findByFinding.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskAssessment | null>

      The function result.

      Objective: In module packages/db/src/repositories/risk-assessment.repository.ts, retrieve data through findById.

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

    • Generated

      Returns the result of findLatestByFinding.

      Parameters

      • findingId: string

        The findingId value.

      • tenantId: string

        The tenantId value.

      • OptionalassessmentType: RiskAssessmentType

        The assessmentType value.

      Returns Promise<RiskAssessment | null>

      The function result.

      Objective: In module packages/db/src/repositories/risk-assessment.repository.ts, retrieve data through findLatestByFinding.

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