delete
@SuccessResponse(HttpStatusCode.OK, "สำเร็จ")
This commit is contained in:
parent
f51adcc8cb
commit
ce5c56bfca
33 changed files with 22 additions and 55 deletions
|
|
@ -48,7 +48,6 @@ import { after } from "node:test";
|
|||
HttpStatusCode.INTERNAL_SERVER_ERROR,
|
||||
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง",
|
||||
)
|
||||
@SuccessResponse(HttpStatusCode.OK, "สำเร็จ")
|
||||
export class EmployeePositionController extends Controller {
|
||||
private employeePosDictRepository = AppDataSource.getRepository(EmployeePosDict);
|
||||
private employeePosTypeRepository = AppDataSource.getRepository(EmployeePosType);
|
||||
|
|
@ -169,8 +168,8 @@ export class EmployeePositionController extends Controller {
|
|||
empPosDict.lastUpdateFullName = request.user.name;
|
||||
empPosDict.lastUpdatedAt = new Date();
|
||||
this.employeePosDictRepository.merge(empPosDict, requestBody);
|
||||
await this.employeePosDictRepository.save(empPosDict,{data: request});
|
||||
setLogDataDiff( request, { before, after: empPosDict });
|
||||
await this.employeePosDictRepository.save(empPosDict, { data: request });
|
||||
setLogDataDiff(request, { before, after: empPosDict });
|
||||
return new HttpSuccess(empPosDict.id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue