elioria-sst-x
    Preparing search index...

    Class SupabaseIncidentImmediateActionRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByIncident.

      Parameters

      • incidentId: string

        The incidentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<IncidentImmediateAction[]>

      The function result.

      Objective: In module packages/db/src/repositories/investigacao-v2.repository.ts, retrieve data through findByIncident.

      Behavior: Async; accepts incidentId and tenantId; returns a value; invokes this.db .select() .from(incidentImmediateActions) .where( an.

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • data: Partial<
            Omit<
                IncidentImmediateAction,
                "id"
                | "tenantId"
                | "incidentId"
                | "createdBy"
                | "createdAt",
            >,
        >

        The data value.

      Returns Promise<IncidentImmediateAction>

      The function result.

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

      Behavior: Async; accepts id and tenantId and data; returns a value; invokes this.db .update(incidentImmediateActions) .set(data as Recor; may throw.

      When the function cannot complete normally.