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:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user