elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionFollowUpRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByInspection.

      Parameters

      • inspectionId: string

        The inspectionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionFollowUp[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspecoes.repository.ts, retrieve data through findByInspection.

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

    • Generated

      Returns the result of findOverdue.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionFollowUp[]>

      The function result.

      Objective: In module packages/db/src/repositories/inspecoes.repository.ts, retrieve data through findOverdue.

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

    • Generated

      Updates data through updateStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: FollowUpStatus

        The status value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/inspecoes.repository.ts, change data through updateStatus.

      Behavior: Async; accepts id and tenantId and status; returns a value; invokes this.db .update(inspectionFollowUps) .set({ status }) .where.