From 76b96f0be34a00c2c1e18709dad1993a58db4aeb Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Fri, 21 Nov 2025 14:29:49 -0600 Subject: [PATCH] fixed module errors --- src/modules/AT/periodo/periodo.module.ts | 3 +++ src/modules/AT/periodo/periodo.service.ts | 2 +- src/modules/AT/plataforma/periodo.module.ts | 3 +++ src/modules/AT/plataforma/periodo.service.ts | 2 +- src/operations/operations.module.ts | 2 ++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/modules/AT/periodo/periodo.module.ts b/src/modules/AT/periodo/periodo.module.ts index e22b906..f8eb8ad 100644 --- a/src/modules/AT/periodo/periodo.module.ts +++ b/src/modules/AT/periodo/periodo.module.ts @@ -1,8 +1,11 @@ import { Module } from '@nestjs/common'; import { PeriodoService } from './periodo.service'; import { PeriodoController } from './periodo.controller'; +import { TypeOrmModule } from '@nestjs/typeorm'; +import { Periodo } from 'src/database/AT/entities/periodo.entity'; @Module({ + imports: [TypeOrmModule.forFeature([Periodo], 'dbAT')], controllers: [PeriodoController], providers: [PeriodoService], exports: [PeriodoService], diff --git a/src/modules/AT/periodo/periodo.service.ts b/src/modules/AT/periodo/periodo.service.ts index 3a79fde..71fc67b 100644 --- a/src/modules/AT/periodo/periodo.service.ts +++ b/src/modules/AT/periodo/periodo.service.ts @@ -6,7 +6,7 @@ import { Repository } from 'typeorm'; @Injectable() export class PeriodoService { constructor( - @InjectRepository(Periodo) + @InjectRepository(Periodo,"dbAT") private readonly periodoRepository: Repository, ) {} diff --git a/src/modules/AT/plataforma/periodo.module.ts b/src/modules/AT/plataforma/periodo.module.ts index d8bf1d6..6f03737 100644 --- a/src/modules/AT/plataforma/periodo.module.ts +++ b/src/modules/AT/plataforma/periodo.module.ts @@ -1,8 +1,11 @@ import { Module } from '@nestjs/common'; import { PlataformaController } from './periodo.controller'; import { PlataformaService } from './periodo.service'; +import { Plataforma } from 'src/database/AT/entities/alumno_inscrito.entity'; +import { TypeOrmModule } from '@nestjs/typeorm'; @Module({ + imports:[TypeOrmModule.forFeature([Plataforma],'dbAT')], controllers: [PlataformaController], providers: [PlataformaService], exports: [PlataformaService], diff --git a/src/modules/AT/plataforma/periodo.service.ts b/src/modules/AT/plataforma/periodo.service.ts index bc94de6..a310ff5 100644 --- a/src/modules/AT/plataforma/periodo.service.ts +++ b/src/modules/AT/plataforma/periodo.service.ts @@ -6,7 +6,7 @@ import { Repository } from 'typeorm'; @Injectable() export class PlataformaService { constructor( - @InjectRepository(Plataforma) + @InjectRepository(Plataforma,"dbAT") private readonly plataformaRepository: Repository, ) {} diff --git a/src/operations/operations.module.ts b/src/operations/operations.module.ts index be3891a..7061850 100644 --- a/src/operations/operations.module.ts +++ b/src/operations/operations.module.ts @@ -8,6 +8,7 @@ import { PagoKioscoModule } from 'src/modules/Monedero/pago-kiosco/pago-kiosco.m import { AlumnoModule } from 'src/modules/AT/alumno/student.module'; import { AlumnoInscritoModule } from 'src/modules/AT/alumno_inscrito/alumno_inscrito.module'; import { PeriodoModule } from 'src/modules/AT/periodo/periodo.module'; +import { PlataformaModule } from 'src/modules/AT/plataforma/periodo.module'; @Module({ imports: [ @@ -18,6 +19,7 @@ import { PeriodoModule } from 'src/modules/AT/periodo/periodo.module'; AlumnoModule, AlumnoInscritoModule, PeriodoModule, + PlataformaModule, ], controllers: [OperationsController], providers: [OperationsService],