|
|
@@ -8,10 +8,12 @@ import { SurveillanceModule } from './surveillance/surveillance.module';
|
|
|
@Module({
|
|
|
imports: [
|
|
|
TypeOrmModule.forRoot({
|
|
|
- type: 'sqlite',
|
|
|
- database: 'palm_history.db',
|
|
|
+ type: 'sqljs',
|
|
|
+ location: 'palm_history.db',
|
|
|
+ autoSave: true,
|
|
|
+ useLocalForage: false,
|
|
|
autoLoadEntities: true,
|
|
|
- synchronize: true, // Auto-create tables (use only for development)
|
|
|
+ synchronize: true,
|
|
|
}),
|
|
|
PalmOilModule,
|
|
|
SurveillanceModule, // Lego 09 — boots PID polling on startup
|