From 6bc68ddd048a2cb389434c1aa9e4a5b161610b69 Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 28 Jan 2026 16:55:14 +0530 Subject: [PATCH] fixed the condition and route path --- serverless/functions/host.yml | 2 +- src/modules/host/services/activityScheduling.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serverless/functions/host.yml b/serverless/functions/host.yml index 5ec397d..815d1a4 100644 --- a/serverless/functions/host.yml +++ b/serverless/functions/host.yml @@ -475,5 +475,5 @@ getActivitiesByStatus: - ${file(./serverless/patterns/base.yml):pattern4} events: - httpApi: - path: /host/Activity_Hub/get-activities-by-status + path: /scheduling/get-all-activities method: get \ No newline at end of file diff --git a/src/modules/host/services/activityScheduling.service.ts b/src/modules/host/services/activityScheduling.service.ts index a91cf27..4ec5cc4 100644 --- a/src/modules/host/services/activityScheduling.service.ts +++ b/src/modules/host/services/activityScheduling.service.ts @@ -223,7 +223,7 @@ export class SchedulingService { isActive: true, deletedAt: null, activityInternalStatus: { - in: [ACTIVITY_INTERNAL_STATUS.ACTIVITY_LISTED, ACTIVITY_INTERNAL_STATUS.ACTIVITY_NOT_LISTED, ACTIVITY_INTERNAL_STATUS.ACTIVITY_UNLISTED] + in: [ACTIVITY_INTERNAL_STATUS.ACTIVITY_APPROVED, ACTIVITY_INTERNAL_STATUS.ACTIVITY_UNLISTED, ACTIVITY_INTERNAL_STATUS.ACTIVITY_LISTED] } };