20 lines
470 B
JavaScript
20 lines
470 B
JavaScript
|
|
import db from './src/database/models/index.js';
|
|
|
|
async function check() {
|
|
try {
|
|
const progress = await db.ApplicationProgress.findAll({
|
|
where: { applicationId: 'a8d0ffb3-be90-4aa8-9344-16729ed07056' },
|
|
order: [['stageOrder', 'ASC']]
|
|
});
|
|
for (const p of progress) {
|
|
console.log(`${p.stageOrder}: ${p.stageName} - Status: ${p.status}`);
|
|
}
|
|
process.exit(0);
|
|
} catch (e) {
|
|
console.error(e);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
check();
|