From 2c81e949ca47d1be452bb205157225d3763cb5a8 Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Tue, 30 Dec 2025 13:39:36 +0530 Subject: [PATCH] fixed the get api of activity --- src/modules/host/services/host.service.ts | 34 ++++++++++------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/src/modules/host/services/host.service.ts b/src/modules/host/services/host.service.ts index 2fbde65..f57bd37 100644 --- a/src/modules/host/services/host.service.ts +++ b/src/modules/host/services/host.service.ts @@ -1808,12 +1808,6 @@ export class HostService { ActivityPickUpDetails: { where: { isActive: true, - activityPickUpTransport: { - isActive: true, - transportMode: { - isActive: true, - }, - }, }, select: { id: true, @@ -1823,22 +1817,22 @@ export class HostService { locationLong: true, transportTotalPrice: true, transportBasePrice: true, - - activityPickUpTransport: { - select: { - id: true, - isTransportModeChargeable: true, - - transportMode: { - select: { - transportModeName: true, - transportModeIcon: true, - }, - }, - }, - }, }, }, + activityPickUpTransports: { + where: { + isActive: true + }, + select: { + transportModeXid: true, + transportMode: { + select: { + transportModeName: true, + transportModeIcon: true + } + } + } + }, foodAvailable: true, foodIsChargeable: true, activityFoodTypes: {