mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 07:54:53 +00:00
refactor: streamline Booking module and service by removing unused imports and consolidating space validation logic
This commit is contained in:
@ -1,16 +1,17 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { BookableSpaceController } from './controllers';
|
||||
import { BookableSpaceService } from './services';
|
||||
import { BookableSpaceEntityRepository } from '@app/common/modules/booking/repositories';
|
||||
import { BookableSpaceEntity } from '@app/common/modules/booking/entities';
|
||||
import { SpaceEntity } from '@app/common/modules/space/entities/space.entity';
|
||||
import { SpaceRepository } from '@app/common/modules/space';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([BookableSpaceEntity, SpaceEntity])],
|
||||
controllers: [BookableSpaceController],
|
||||
providers: [BookableSpaceService, BookableSpaceEntityRepository],
|
||||
providers: [
|
||||
BookableSpaceService,
|
||||
BookableSpaceEntityRepository,
|
||||
SpaceRepository,
|
||||
],
|
||||
exports: [BookableSpaceService],
|
||||
})
|
||||
export class BookingModule {}
|
||||
|
||||
Reference in New Issue
Block a user