diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-03-26 00:37:41 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-03-26 00:37:41 +0000 |
| commit | e0dfb55c5457aec489fc084c4567e791b4c65eb1 (patch) | |
| tree | 68543a65d88f5afb3a0202925804103daa91bc6f /db/seeds/tasks.ts | |
3/25 까지의 대표님 작업사항
Diffstat (limited to 'db/seeds/tasks.ts')
| -rw-r--r-- | db/seeds/tasks.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/seeds/tasks.ts b/db/seeds/tasks.ts new file mode 100644 index 00000000..ac1ba337 --- /dev/null +++ b/db/seeds/tasks.ts @@ -0,0 +1,21 @@ +import { seedTasks } from "./taskseed" + +async function runSeed() { + console.log("⏳ Running seed...") + + const start = Date.now() + + await seedTasks({ count: 100 }) + + const end = Date.now() + + console.log(`✅ Seed completed in ${end - start}ms`) + + process.exit(0) +} + +runSeed().catch((err) => { + console.error("❌ Seed failed") + console.error(err) + process.exit(1) +}) |
