elioria-sst-x
    Preparing search index...

    Class SupabaseInspectionResponseRepository

    Implements

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

    The db value.

    • Generated

      Updates data through deleteByInspection.

      Parameters

      • inspectionId: string

        The inspectionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/inspection-response.repository.ts, change data through deleteByInspection.

      Behavior: Async; accepts inspectionId and tenantId; returns a value; invokes this.db.delete(inspectionResponses) .where.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionResponse | null>

      The function result.

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

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

    • Generated

      Returns the result of findByInspection.

      Parameters

      • inspectionId: string

        The inspectionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<InspectionResponse[]>

      The function result.

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

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