mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -138,7 +138,7 @@ const getQuizScores = async (req, res) => {
|
||||
const memberIds = [...new Set(memberships.map(m => m.user_id))];
|
||||
|
||||
const quiz = await UnitQuiz.findByPk(quizId, {
|
||||
include: [{ model: Unit, as: 'unit', attributes: ['title', 'course_id'] }],
|
||||
include: [{ model: Unit, as: 'unit', attributes: ['unit_id', 'title'] }],
|
||||
});
|
||||
if (!quiz) return res.status(404).json({ success: false, message: 'Quiz not found.' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user