Merge branch 'pqq-optimized-logic' of http://git.wdipl.com/Mayank.Mishra/MinglarBackendNestJS into pqq-optimized-logic
This commit is contained in:
@@ -1894,6 +1894,7 @@ export class MinglarService {
|
||||
isActive: true,
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
comments: true,
|
||||
pqqAnswerXid: true,
|
||||
pqqQuestions: {
|
||||
@@ -1965,8 +1966,12 @@ export class MinglarService {
|
||||
id: cat.id,
|
||||
categoryName: cat.categoryName,
|
||||
displayOrder: cat.displayOrder,
|
||||
activityPqqHeaderId: item.id,
|
||||
pqqsubCategories: []
|
||||
};
|
||||
} else if (!grouped[cat.id].activityPqqHeaderId) {
|
||||
// Ensure header id is present at category level
|
||||
grouped[cat.id].activityPqqHeaderId = item.id;
|
||||
}
|
||||
const category = grouped[cat.id];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user