From e6e46fe616f43ca3ce81699f65289cbd71b1f72e Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Wed, 15 Apr 2026 13:40:22 +0530 Subject: [PATCH] fix --- prisma/seed.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prisma/seed.ts b/prisma/seed.ts index 4308cd7..acf0f12 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -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