From d79d91c6b5f68318a50f255ae657a697384dcad1 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:08:40 +0700 Subject: [PATCH] feat: also return with relationship (reduce fetch) --- src/controllers/ProfileAddressController.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controllers/ProfileAddressController.ts b/src/controllers/ProfileAddressController.ts index 5e9013f3..e0907264 100644 --- a/src/controllers/ProfileAddressController.ts +++ b/src/controllers/ProfileAddressController.ts @@ -75,13 +75,19 @@ export class ProfileAddressController extends Controller { select: [ "registrationAddress", "registrationProvinceId", + "registrationProvince", "registrationDistrictId", + "registrationDistrict", "registrationSubDistrictId", + "registrationSubDistrict", "registrationZipCode", "currentAddress", "currentProvinceId", + "currentProvince", "currentDistrictId", + "currentDistrict", "currentSubDistrictId", + "currentSubDistrict", "currentZipCode", "createdFullName", "createdAt",