fix: บันทึกข้อมูลประวัติก่อนหน้าที่แก้ไข

This commit is contained in:
Net 2024-03-20 14:18:49 +07:00
parent e2b65aaabf
commit 6e88a050f7
4 changed files with 4 additions and 4 deletions

View file

@ -157,8 +157,8 @@ export class ProfileInformationController extends Controller {
console.log(requestBody);
Object.assign(history, { ...record, id: undefined });
Object.assign(record, requestBody);
Object.assign(history, { ...requestBody, id: undefined });
history.profileInformationId = informationId;
history.lastUpdateFullName = req.user.name;