reviewer_name added

This commit is contained in:
unknown 2025-11-26 16:07:18 +05:30
parent 638819495e
commit 82c9a23671

View File

@ -264,14 +264,21 @@ exports.adminDashboard = async (req, res) => {
LIMIT 1 LIMIT 1
)`), )`),
"created_by_name" "created_by_name"
] ],
[
Sequelize.literal(`(
SELECT au.name
FROM admin_users au
WHERE au.id = submission.updated_by
LIMIT 1
)`),
"reviewer_name"
],
], ],
}, },
order: [["created_at", "DESC"]], order: [["created_at", "DESC"]],
limit: 10, limit: 10,
}); });
console.log(recentSubmissions,'geetha')
return res.status(200).json({ return res.status(200).json({
status: "success", status: "success",
selected_quarter: quarter, selected_quarter: quarter,