fixed module errors
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Repository } from 'typeorm';
|
||||
@Injectable()
|
||||
export class PeriodoService {
|
||||
constructor(
|
||||
@InjectRepository(Periodo)
|
||||
@InjectRepository(Periodo,"dbAT")
|
||||
private readonly periodoRepository: Repository<Periodo>,
|
||||
) {}
|
||||
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Repository } from 'typeorm';
|
||||
@Injectable()
|
||||
export class PlataformaService {
|
||||
constructor(
|
||||
@InjectRepository(Plataforma)
|
||||
@InjectRepository(Plataforma,"dbAT")
|
||||
private readonly plataformaRepository: Repository<Plataforma>,
|
||||
) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user