From 50ce8e39c540f83871e6e19e86305baa61ce69b4 Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 25 Mar 2026 12:36:47 +0530 Subject: [PATCH] sending checkin lat long in the user itinerary api and city state country details of the parent company in the getbyid api of host --- src/modules/host/services/host.service.ts | 41 ++++++++++++++++++- .../user/services/itinerary.service.ts | 2 + 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/src/modules/host/services/host.service.ts b/src/modules/host/services/host.service.ts index 6e3dbac..9f38112 100644 --- a/src/modules/host/services/host.service.ts +++ b/src/modules/host/services/host.service.ts @@ -446,7 +446,46 @@ export class HostService { where: { userXid: id }, include: { hostParent: { - include: { + select: { + id: true, + logoPath: true, + companyName: true, + address1: true, + address2: true, + cities: { + select: { + id: true, + cityName: true + } + }, + states: { + select: { + id: true, + stateName: true + } + }, + countries: { + select: { + id: true, + countryName: true + } + }, + pinCode: true, + registrationNumber: true, + panNumber: true, + gstNumber: true, + formationDate: true, + companyTypes: { + select: { + id: true, + companyTypeName: true + } + }, + websiteUrl: true, + instagramUrl: true, + facebookUrl: true, + linkedinUrl: true, + twitterUrl: true, HostParenetDocuments: { select: { id: true, diff --git a/src/modules/user/services/itinerary.service.ts b/src/modules/user/services/itinerary.service.ts index 0905a76..ad68312 100644 --- a/src/modules/user/services/itinerary.service.ts +++ b/src/modules/user/services/itinerary.service.ts @@ -1523,6 +1523,8 @@ export class ItineraryService { checkInCity: activity.checkInCity, checkInState: activity.checkInState, checkInCountry: activity.checkInCountry, + checkInLat: activity.checkInLat, + checkInLong: activity.checkInLong, interest: activity.activityType?.interests ? { id: activity.activityType.interests.id,