mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
26 lines
1,018 B
TypeScript
26 lines
1,018 B
TypeScript
// import { NestFactory } from '@nestjs/core';
|
|
// import { AppModule } from '../src/app.module';
|
|
// import { SeedsService } from '@services/seeds.service';
|
|
// import { Organization } from 'src/entities/organization.entity';
|
|
// import { OrganizationsService } from '@services/organizations.service';
|
|
|
|
// async function bootstrap() {
|
|
// const app = await NestFactory.create(AppModule, {
|
|
// logger: ['error', 'warn'],
|
|
// });
|
|
// const seedsService = app.get(SeedsService);
|
|
// const organizationService = app.get(OrganizationsService);
|
|
|
|
// await seedsService.perform();
|
|
// const organizations: Organization[] = await seedsService.getAllOrganizations();
|
|
// for (const org of organizations) {
|
|
// await organizationService.createSampleDB(org.id);
|
|
// }
|
|
// await app.close();
|
|
// // TODO: process exit wasn't needed earlier
|
|
// // need to debug why app.close() doesn't exit gracefully
|
|
// process.exit(0);
|
|
// }
|
|
|
|
// // eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
// bootstrap();
|