feat(seeder): add one-time database seeding endpoint with status tracking
deploy-chabokan / deploy (push) Canceled after 0s

This commit is contained in:
2026-08-19 06:49:53 +03:30
parent 8bdd5af719
commit 284594c782
4 changed files with 96 additions and 2 deletions
+12 -2
View File
@@ -12,6 +12,16 @@ module.exports.run = async () => {
await roleSeeder.runSeeder()
await featureSeeder.runSeeder()
await propertyStatusSeeder.runSeeder()
await propertyService.indexAllProperties()
await transactionService.indexAllTransactions()
try {
await propertyService.indexAllProperties()
} catch (err) {
console.warn('Typesense property indexing warning during seed:', err.message)
}
try {
await transactionService.indexAllTransactions()
} catch (err) {
console.warn('Typesense transaction indexing warning during seed:', err.message)
}
}