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 { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { Children } from 'src/entities/children.entity';
|
||||
import { ParentsModule } from '../parents/parents.module';
|
||||
import { ParentsChildren } from 'src/entities/parents_children.entity';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([Children])],
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([Children, ParentsChildren]),
|
||||
ParentsModule,
|
||||
],
|
||||
controllers: [EnfantsController],
|
||||
providers: [EnfantsService],
|
||||
exports: [EnfantsService],
|
||||
})
|
||||
export class EnfantsModule {}
|
||||
|
||||
@ -9,5 +9,6 @@ import { Users } from 'src/entities/users.entity';
|
||||
imports: [TypeOrmModule.forFeature([Parents, Users])],
|
||||
controllers: [ParentsController],
|
||||
providers: [ParentsService],
|
||||
exports: [TypeOrmModule.forFeature([Parents, Users])],
|
||||
})
|
||||
export class ParentsModule {}
|
||||
Loading…
x
Reference in New Issue
Block a user