This commit is contained in:
pradeepkumar
2026-04-15 13:40:22 +05:30
parent 9c293a106f
commit e6e46fe616

View File

@@ -1247,6 +1247,10 @@ async function main() {
// =============================================
// Seed Agent-Type-Specific Sections
// =============================================
// DISABLED: Professional (Agent) and Lender sections are no longer auto-updated on each seed run
// to prevent admin customizations (labels, options, sortOrder) from being overwritten.
// To re-enable a one-time run, set env var SEED_AGENT_TYPE_SECTIONS=true.
if (process.env.SEED_AGENT_TYPE_SECTIONS === 'true') {
console.log('📋 Seeding Agent-Type-Specific Sections...');
// First, delete old global Experience section if exists
@@ -1376,6 +1380,10 @@ async function main() {
}
console.log('');
} else {
console.log('⏭️ Skipping Agent-Type-Specific Sections (set SEED_AGENT_TYPE_SECTIONS=true to enable)');
console.log('');
}
// =============================================
// Seed Admin User