Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop

This commit is contained in:
Kittapath 2024-03-28 11:44:30 +07:00
commit 6fa61f6ae0

View file

@ -71,19 +71,23 @@ export class ProfileAddressController extends Controller {
@Get("history/{addressId}")
public async getProfileAddressHistory(@Path() addressId: string) {
const record = await this.profileAddressHistoryRepo.find({
where: {
id: addressId,
},
where: { profileId: addressId },
select: [
"registrationAddress",
"registrationProvinceId",
"registrationProvince",
"registrationDistrictId",
"registrationDistrict",
"registrationSubDistrictId",
"registrationSubDistrict",
"registrationZipCode",
"currentAddress",
"currentProvinceId",
"currentProvince",
"currentDistrictId",
"currentDistrict",
"currentSubDistrictId",
"currentSubDistrict",
"currentZipCode",
"createdFullName",
"createdAt",