elioria-sst-x
    Preparing search index...

    Class SupabaseCipaPeDeadlineRepository

    Implements

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

    The db value.

    • Generated

      Updates data through deleteByElection.

      Parameters

      • electionId: string

        The electionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<void>

      The function result.

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

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

    • Generated

      Returns the result of findByElection.

      Parameters

      • electionId: string

        The electionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CipaPeDeadline[]>

      The function result.

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

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

    • Generated

      Executes markMet.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • documentId: string

        The documentId value.

      • metAt: Date

        The metAt value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/cipa.repository.ts, run markMet.

      Behavior: Async; accepts id and tenantId and documentId and metAt; returns a value; invokes this.db.update(cipaElectionDeadlines).set({ isMet: true, met.