fix: บันทึกข้อมูลประวัติก่อนหน้าที่แก้ไข
This commit is contained in:
parent
e2b65aaabf
commit
6e88a050f7
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue