Changed the host constant as per client requirement and sending the activity type name in the pqq endpoints

This commit is contained in:
2026-02-17 16:27:40 +05:30
parent 7569b54d60
commit 3f2e553947
2 changed files with 15 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ export const ACTIVITY_INTERNAL_STATUS = {
};
export const ACTIVITY_DISPLAY_STATUS = {
DRAFT_PQ: 'Draft - PQ',
DRAFT_PQ: 'Draft',
APPROVED: 'Approved',
REJECTED: 'Rejected',
DRAFT: 'Draft',
@@ -57,7 +57,7 @@ export const ACTIVITY_DISPLAY_STATUS = {
ACTIVITY_DRAFT: 'Draft - Activity',
ACTIVITY_IN_REVIEW: 'In Review',
ACTIVITY_TO_REVIEW: 'To Review',
ACTIVITY_TO_REVIEW: 'Re-submitted',
NOT_LISTED: 'Not Listed',
ACTIVITY_LISTED: 'Listed',
ACTIVITY_UNLISTED: 'Un Listed',
@@ -83,7 +83,7 @@ export const ACTIVITY_AM_INTERNAL_STATUS = {
};
export const ACTIVITY_AM_DISPLAY_STATUS = {
DRAFT_PQ: 'Draft - PQ',
DRAFT_PQ: 'Draft',
APPROVED: 'Approved',
REJECTED: 'Rejected',
DRAFT: 'Draft',

View File

@@ -1787,6 +1787,17 @@ export class HostService {
pqqQuestionXid: true,
pqqAnswerXid: true,
comments: true,
activity: {
select: {
id: true,
activityType: {
select: {
id: true,
activityTypeName: true
}
}
}
},
pqqQuestions: {
select: {
questionName: true,
@@ -2528,6 +2539,7 @@ export class HostService {
return {
activity_xid: created.id,
activityType: activityType,
sortedCategories,
};
});