import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { GpsDevice } from './entities/gps-device.entity'; import { GpsPosition } from './entities/gps-position.entity'; import { GpsDeviceRepository, GpsPositionRepository } from './gps-tracking.repository'; import { GpsTrackingService } from './gps-tracking.service'; import { GpsTrackingController } from './gps-tracking.controller'; // NOTE: the GT06 TCP listener now lives in the standalone @edr/gps-tracker app. // This module is REST-only — it reads gps_devices / gps_positions that the // tracker app writes to the shared DB. Do not re-add Gt06Server here, or two // processes would fight for the tracker socket. @Module({ imports: [TypeOrmModule.forFeature([GpsDevice, GpsPosition])], controllers: [GpsTrackingController], providers: [GpsDeviceRepository, GpsPositionRepository, GpsTrackingService], exports: [GpsTrackingService], }) export class GpsTrackingModule {}