This commit is contained in:
2026-01-05 21:37:06 +01:00
parent d9e6151ae0
commit 4a1bfa57a3
3 changed files with 53 additions and 2 deletions

View File

@@ -39,7 +39,12 @@ export class BootstrapModule implements OnModuleInit {
// Seed demo users (only in dev/test, respects bootstrap enable flag)
if (await this.shouldSeedDemoUsers()) {
await this.seedDemoUsers.execute();
try {
await this.seedDemoUsers.execute();
} catch (error) {
this.logger.warn('[Bootstrap] Demo user seeding failed but continuing startup:', error);
console.warn('[Bootstrap] Demo user seeding failed but continuing startup:', error);
}
}
console.log('[Bootstrap] Application data initialized successfully');