formato correcto de cuestionario por verificar
This commit is contained in:
@@ -4,14 +4,22 @@ import { PreguntaController } from './pregunta.controller';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { Pregunta } from './entities/pregunta.entity';
|
||||
import { TipoPreguntaModule } from '../tipo_pregunta/tipo_pregunta.module';
|
||||
import { TipoPregunta } from '../tipo_pregunta/entities/tipo_pregunta.entity';
|
||||
import { Opcion } from '../opcion/entities/opcion.entity';
|
||||
import { PreguntaOpcion } from '../pregunta_opcion/entities/pregunta_opcion.entity';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([Pregunta]),
|
||||
TypeOrmModule.forFeature([
|
||||
Pregunta,
|
||||
TipoPregunta,
|
||||
Opcion,
|
||||
PreguntaOpcion
|
||||
]),
|
||||
TipoPreguntaModule
|
||||
],
|
||||
controllers: [PreguntaController],
|
||||
providers: [PreguntaService],
|
||||
exports: [TypeOrmModule]
|
||||
exports: [TypeOrmModule, PreguntaService]
|
||||
})
|
||||
export class PreguntaModule {}
|
||||
|
||||
Reference in New Issue
Block a user