elioria-sst-x
    Preparing search index...

    Class SupabaseTrainingEnrollmentRepository

    Implements

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

    The db value.

    • Generated

      Executes confirmPresence.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • method: PresenceMethod

        The method value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/treinamentos.repository.ts, run confirmPresence.

      Behavior: Async; accepts id and tenantId and method; returns a value; invokes this.db.update(trainingEnrollments).set({ attended: true, pr.

    • Generated

      Returns the result of findBySession.

      Parameters

      • sessionId: string

        The sessionId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<TrainingEnrollment[]>

      The function result.

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

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

    • Generated

      Updates data through updateConvocationStatus.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • status: ConvocationStatus

        The status value.

      • Optionaljustification: string

        The justification value.

      Returns Promise<void>

      The function result.

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

      Behavior: Async; accepts id and tenantId and status and justification; returns a value; invokes this.db .update(trainingEnrollments) .set(payload) .where.