sending checkin lat long in the user itinerary api and city state country details of the parent company in the getbyid api of host

This commit is contained in:
2026-03-25 12:36:47 +05:30
parent 19e57f0e7f
commit 50ce8e39c5
2 changed files with 42 additions and 1 deletions

View File

@@ -446,7 +446,46 @@ export class HostService {
where: { userXid: id }, where: { userXid: id },
include: { include: {
hostParent: { 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: { HostParenetDocuments: {
select: { select: {
id: true, id: true,

View File

@@ -1523,6 +1523,8 @@ export class ItineraryService {
checkInCity: activity.checkInCity, checkInCity: activity.checkInCity,
checkInState: activity.checkInState, checkInState: activity.checkInState,
checkInCountry: activity.checkInCountry, checkInCountry: activity.checkInCountry,
checkInLat: activity.checkInLat,
checkInLong: activity.checkInLong,
interest: activity.activityType?.interests interest: activity.activityType?.interests
? { ? {
id: activity.activityType.interests.id, id: activity.activityType.interests.id,