fixed the isreviewed flase suggestion only send and the activityPqqHeaderId sending in every respective question

This commit is contained in:
2025-12-31 19:26:51 +05:30
parent 9161e224cc
commit e0086393b4

View File

@@ -2086,7 +2086,7 @@ export class MinglarService {
},
},
ActivityPQQSuggestions: {
where: { isActive: true },
where: { isActive: true, isReviewed: false },
select: {
id: true,
title: true,
@@ -2120,7 +2120,6 @@ export class MinglarService {
id: cat.id,
categoryName: cat.categoryName,
displayOrder: cat.displayOrder,
activityPqqHeaderId: item.id,
pqqsubCategories: [],
};
} else if (!grouped[cat.id].activityPqqHeaderId) {
@@ -2144,6 +2143,7 @@ export class MinglarService {
// 3⃣ Questions level
subCat.questions.push({
id: q.id,
activityPqqHeaderId: item.id,
questionName: q.questionName,
maxPoints: q.maxPoints,
pqqAnswerXid: item.pqqAnswerXid,