Update seed.ts

This commit is contained in:
Abubeker Yasin
2026-06-11 14:24:56 +03:00
parent ecb519db6b
commit 556c2dc1f8

View File

@@ -555,7 +555,7 @@ async function seedFraudRules() {
// Run a seed step in isolation: if it throws (FK conflict, duplicate row,
// missing record, etc.) log the error and keep going so the rest of the seed —
// and the API startup that follows it — are never blocked by one bad step.
async function runStep(name: string, step: () => Promise<void>): Promise<boolean> {
async function runStep(name: string, step: () => Promise<unknown>): Promise<boolean> {
try {
await step();
return true;
@@ -568,7 +568,7 @@ async function runStep(name: string, step: () => Promise<void>): Promise<boolean
async function main() {
console.log('🌱 Comprehensive EDR Seed Starting...\n');
const steps: Array<[string, () => Promise<void>]> = [
const steps: Array<[string, () => Promise<unknown>]> = [
['system users', seedSystemUsers],
['stations', seedStations],
['coach types & classes', seedCoachTypesAndClasses],