variables de entorno, correcciones de codigo actual, docker file
This commit is contained in:
@@ -9,8 +9,8 @@ export class Opcion {
|
||||
@Column({ type: String, nullable: false, length: 200, default: '' })
|
||||
opcion: string;
|
||||
|
||||
@OneToMany(() => PreguntaOpcion, (preguntaOpcion) => preguntaOpcion.id_opcion)
|
||||
Preguntas: PreguntaOpcion[];
|
||||
@OneToMany(() => PreguntaOpcion, (preguntaOpcion) => preguntaOpcion.opcion)
|
||||
preguntasOpciones: PreguntaOpcion[];
|
||||
|
||||
|
||||
}
|
||||
@@ -8,6 +8,6 @@ import { Opcion } from './entities/opcion.entity';
|
||||
imports: [TypeOrmModule.forFeature([Opcion])], // Importa el repositorio de Opcion
|
||||
controllers: [OpcionController],
|
||||
providers: [OpcionService],
|
||||
exports: [OpcionService]
|
||||
exports: [OpcionService, TypeOrmModule]
|
||||
})
|
||||
export class OpcionModule {}
|
||||
|
||||
Reference in New Issue
Block a user