fix
This commit is contained in:
parent
e2168292ea
commit
517bd1a914
1 changed files with 2 additions and 4 deletions
|
|
@ -178,10 +178,8 @@ export class Salary extends Controller {
|
|||
if (!chk_posLevelId) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ระดับของตำแหน่ง ไม่ถูกต้อง");
|
||||
}
|
||||
const mergeData: DeepPartial<Salarys> = {
|
||||
...requestBody,
|
||||
details: requestBody.details === null ? undefined : requestBody.details,
|
||||
};
|
||||
const mergeData = Object.assign(new Salarys(), requestBody);
|
||||
|
||||
chk_Salary.lastUpdateUserId = request.user.sub;
|
||||
chk_Salary.lastUpdateFullName = request.user.name;
|
||||
chk_Salary.lastUpdatedAt = new Date();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue