fixed the isreviewed flase suggestion only send and the activityPqqHeaderId sending in every respective question
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user