modulo institucion infraccion final

This commit is contained in:
xXpuma99Xx 2022-06-22 11:35:02 -05:00
parent 6ee9ddd10a
commit 4ea6f46629
3 changed files with 3 additions and 3 deletions

View File

@ -13,5 +13,5 @@ export class Infraccion {
() => InstitucionInfraccion,
(institucionInfraccion) => institucionInfraccion.infraccion,
)
institucionInfracciones: InstitucionInfraccion[];
instituciones: InstitucionInfraccion[];
}

View File

@ -20,7 +20,7 @@ export class InstitucionInfraccion {
@ManyToOne(
() => Infraccion,
(infraccion) => infraccion.institucionInfracciones,
(infraccion) => infraccion.instituciones,
{ eager: true },
)
@JoinColumn({ name: 'id_infraccion' })

View File

@ -5,8 +5,8 @@ import {
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { InstitucionInfraccion } from './entity/institucion-infraccion.entity';
import { Infraccion } from './entity/infraccion.entity';
import { InstitucionInfraccion } from './entity/institucion-infraccion.entity';
import { InstitucionService } from '../institucion/institucion.service';
@Injectable()