import 'dotenv/config'; import db from './src/database/models/index.js'; const { RequestParticipant } = (db as any).default || db; const applicationId = '6139d6f9-f3c1-4e55-903b-3516d3a08955'; async function checkParticipants() { try { const count = await RequestParticipant.count({ where: { requestId: applicationId, requestType: 'application' } }); console.log(`Application has ${count} participants.`); } catch (error) { console.error('Error checking participants:', error); } finally { process.exit(); } } checkParticipants();