add update time

This commit is contained in:
kittapath 2024-09-01 22:44:23 +07:00
parent ad4efc2b47
commit a2292d6048
57 changed files with 257 additions and 98 deletions

View file

@ -3144,8 +3144,8 @@ export class ProfileEmployeeTempController extends Controller {
if (!employment) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
const history = new ProfileEmployeeEmploymentHistory();
Object.assign(history, { ...employment, id: undefined });
Object.assign(employment, body);
Object.assign(history, { ...employment, id: undefined });
employment.lastUpdateUserId = request.user.sub;
employment.lastUpdateFullName = request.user.name;