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}") @Get("history/{addressId}")
public async getProfileAddressHistory(@Path() addressId: string) { public async getProfileAddressHistory(@Path() addressId: string) {
const record = await this.profileAddressHistoryRepo.find({ const record = await this.profileAddressHistoryRepo.find({
where: { where: { profileId: addressId },
id: addressId,
},
select: [ select: [
"registrationAddress", "registrationAddress",
"registrationProvinceId", "registrationProvinceId",
"registrationProvince",
"registrationDistrictId", "registrationDistrictId",
"registrationDistrict",
"registrationSubDistrictId", "registrationSubDistrictId",
"registrationSubDistrict",
"registrationZipCode", "registrationZipCode",
"currentAddress", "currentAddress",
"currentProvinceId", "currentProvinceId",
"currentProvince",
"currentDistrictId", "currentDistrictId",
"currentDistrict",
"currentSubDistrictId", "currentSubDistrictId",
"currentSubDistrict",
"currentZipCode", "currentZipCode",
"createdFullName", "createdFullName",
"createdAt", "createdAt",