fix(07): DKV/Settings module wiring and missing cron dep
- Add `cron@4.4.0` as direct dep (pnpm strict isolation blocks transitive access) - Import SettingsModule in DkvModule so DkvMailService can inject SettingsService - Fix dkv.service.ts return key: `count` → `imported` to match declared return type Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
"@nestjs/passport": "^11.0.5",
|
||||
"@nestjs/platform-express": "^11.0.0",
|
||||
"@nestjs/schedule": "^6.1.3",
|
||||
"cron": "4.4.0",
|
||||
"@prisma/client": "^6.0.0",
|
||||
"@tessera/shared": "workspace:*",
|
||||
"argon2": "^0.44.0",
|
||||
|
||||
@@ -2,6 +2,7 @@ import { Logger, Module, OnModuleInit } from '@nestjs/common';
|
||||
import { ModuleRegistryModule } from '../module-registry/module-registry.module';
|
||||
import { ModuleRegistryService } from '../module-registry/module-registry.service';
|
||||
import { CalendarModule } from '../calendar/calendar.module';
|
||||
import { SettingsModule } from '../settings/settings.module';
|
||||
import { DkvController } from './dkv.controller';
|
||||
import { DkvExportService } from './dkv-export.service';
|
||||
import { DkvMailService } from './dkv-mail.service';
|
||||
@@ -30,7 +31,7 @@ import { seedDkvModule } from './dkv.seed';
|
||||
*
|
||||
* PrismaModule is global (no explicit import needed).
|
||||
* ScheduleModule.forRoot() was registered in AppModule by Plan 01.
|
||||
* SettingsModule (for DkvMailService → SettingsService) is imported in AppModule.
|
||||
* - SettingsModule: exports SettingsService for DkvMailService (SMTP config at send time)
|
||||
*
|
||||
* Seeds itself into the module registry on application startup via
|
||||
* OnModuleInit lifecycle hook — same pattern as DomaincheckModule.
|
||||
@@ -38,7 +39,8 @@ import { seedDkvModule } from './dkv.seed';
|
||||
@Module({
|
||||
imports: [
|
||||
ModuleRegistryModule,
|
||||
CalendarModule, // Provides CalendarCryptoService for inbox credential encryption
|
||||
CalendarModule,
|
||||
SettingsModule,
|
||||
],
|
||||
controllers: [DkvController],
|
||||
providers: [
|
||||
|
||||
@@ -498,7 +498,7 @@ export class DkvService {
|
||||
}
|
||||
|
||||
this.logger.log(`DKV CSV import: ${vehicles.length} vehicles, mode=${mode}, tenant=${tenantId}`);
|
||||
return { count: vehicles.length, mode };
|
||||
return { imported: vehicles.length, mode };
|
||||
}
|
||||
|
||||
// ─── History ─────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user