Something went wrong. Try again.
because I got bored of customising my CV for every job
Something went wrong. Try again.
433 B · 14 lines
TypeScript
123456789101112131415import { NestFactory } from "@nestjs/core";import { SeedModule } from "@/modules/database/seed/seed.module";import { SeedService } from "@/modules/database/seed/seed.service";
async function main(): Promise<void> { const app = await NestFactory.createApplicationContext(SeedModule); const seedService = app.get(SeedService); await seedService.seed(); await app.close();}
main().catch(() => { process.exitCode = 1;});