From bb5da7647b6e4b66b6d6b8d6bcc57a62e6aa6dfe Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 4 Mar 2026 18:57:14 +0530 Subject: [PATCH] sending the address details in the getbyid host api --- src/modules/host/services/host.service.ts | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/modules/host/services/host.service.ts b/src/modules/host/services/host.service.ts index 095bd3e..6d88be1 100644 --- a/src/modules/host/services/host.service.ts +++ b/src/modules/host/services/host.service.ts @@ -481,6 +481,38 @@ export class HostService { profileImage: true, userStatus: true, userRefNumber: true, + userAddressDetails: { + where: { isActive: true }, + select: { + id: true, + address1: true, + address2: true, + locationAddress: true, + locationLat: true, + locationLong: true, + cityXid: true, + cities: { + select: { + id: true, + cityName: true, + } + }, + stateXid: true, + states: { + select: { + id: true, + stateName: true, + } + }, + countryXid: true, + country:{ + select: { + id: true, + countryName: true + } + } + } + } }, }, companyTypes: {