mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 16:03:02 +00:00
docs(server): say why the admin domain does not import DatabaseBackupModule
DatabaseBackupModule stays @Global, but its comment gave a vague reason. The real one is concrete: the backup domain already reaches admin through auth and settings, so importing the module from AdminModule would add a domain cycle that lint:boundaries rejects. The module comment now says that and points at the e2e harness that imports it by hand, and AdminModule notes where its DATABASE_BACKUP comes from.
This commit is contained in:
@@ -24,6 +24,10 @@ import { PackingModule } from '../packing/packing.module';
|
||||
// not @Global, so the import must be explicit.
|
||||
import { PermissionsModule } from '../permissions/permissions.module';
|
||||
import { AppConfigModule } from '../app-config/app-config.module';
|
||||
// AdminService and DemoResetJob inject DATABASE_BACKUP, which the @Global
|
||||
// DatabaseBackupModule (nest/backup/) provides once BackupModule is in the
|
||||
// graph. It is not imported here on purpose: see that module for the cycle an
|
||||
// import would close.
|
||||
import { Users } from '../../db/entities/Users.entity';
|
||||
import { AuditLog } from '../../db/entities/AuditLog.entity';
|
||||
import { AppSettings } from '../../db/entities/AppSettings.entity';
|
||||
|
||||
Reference in New Issue
Block a user