fix: remove invalid seed

This commit is contained in:
David Nguyen
2024-03-07 12:12:24 +08:00
parent 530508f421
commit ffcb4fda20
2 changed files with 9 additions and 15 deletions

View File

@ -13,7 +13,13 @@ const seedDatabase = async () => {
if ('seedDatabase' in mod && typeof mod.seedDatabase === 'function') {
console.log(`[SEEDING]: ${file}`);
await mod.seedDatabase();
try {
await mod.seedDatabase();
} catch (e) {
console.log(`[SEEDING]: Seed failed for ${file}`);
console.error(e);
}
}
}
}