modules fixed
This commit is contained in:
parent
5608459355
commit
c948fff21d
@ -3,10 +3,16 @@ import { EnfantsController } from './enfants.controller';
|
|||||||
import { EnfantsService } from './enfants.service';
|
import { EnfantsService } from './enfants.service';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import { Children } from 'src/entities/children.entity';
|
import { Children } from 'src/entities/children.entity';
|
||||||
|
import { ParentsModule } from '../parents/parents.module';
|
||||||
|
import { ParentsChildren } from 'src/entities/parents_children.entity';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [TypeOrmModule.forFeature([Children])],
|
imports: [
|
||||||
|
TypeOrmModule.forFeature([Children, ParentsChildren]),
|
||||||
|
ParentsModule,
|
||||||
|
],
|
||||||
controllers: [EnfantsController],
|
controllers: [EnfantsController],
|
||||||
providers: [EnfantsService],
|
providers: [EnfantsService],
|
||||||
|
exports: [EnfantsService],
|
||||||
})
|
})
|
||||||
export class EnfantsModule {}
|
export class EnfantsModule {}
|
||||||
|
|||||||
@ -9,5 +9,6 @@ import { Users } from 'src/entities/users.entity';
|
|||||||
imports: [TypeOrmModule.forFeature([Parents, Users])],
|
imports: [TypeOrmModule.forFeature([Parents, Users])],
|
||||||
controllers: [ParentsController],
|
controllers: [ParentsController],
|
||||||
providers: [ParentsService],
|
providers: [ParentsService],
|
||||||
|
exports: [TypeOrmModule.forFeature([Parents, Users])],
|
||||||
})
|
})
|
||||||
export class ParentsModule {}
|
export class ParentsModule {}
|
||||||
Loading…
x
Reference in New Issue
Block a user