import db from './src/database/models/index.js';

async function repair() {
    const app = await db.Application.findOne({ where: { applicationId: 'APP-2026-2DC97C' } });
    if (app) {
        await app.update({ 
            currentStage: 'FDD',
            overallStatus: 'FDD Verification' // ensure it's synced
        });
        console.log(`Repaired APP-2026-2DC97C: Stage set to FDD`);
    }
    process.exit(0);
}

repair();
