fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user