diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 8ad9018c..77e72663 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -248,8 +248,8 @@ export class ProfileController extends Controller { const profileFamilyCouple = await this.profileFamilyCoupleRepository.findOne({ where: { profileId: id }, - select: ["couplePrefix", "coupleFirstName", "coupleLastNameOld"], - order: {lastUpdatedAt: "DESC"} + select: ["couplePrefix", "coupleFirstName", "coupleLastName", "coupleLastNameOld"], + order: { lastUpdatedAt: "DESC" }, }); const profileFamilyMother = await this.profileFamilyMotherRepository.findOne({ @@ -345,7 +345,7 @@ export class ProfileController extends Controller { profileFamilyCouple?.couplePrefix || profileFamilyCouple?.coupleFirstName || profileFamilyCouple?.coupleLastNameOld - ? `${profileFamilyCouple?.couplePrefix ?? ""}${profileFamilyCouple?.coupleFirstName ?? ""} ${profileFamilyCouple?.coupleLastNameOld ?? ""}`.trim() + ? `${profileFamilyCouple?.couplePrefix ?? ""}${profileFamilyCouple?.coupleFirstName ?? ""} ${profileFamilyCouple?.coupleLastName ?? ""}`.trim() : null, FatherPrefix: profileFamilyFather?.fatherPrefix ?? "", FatherFullName: