delete import dont use
This commit is contained in:
parent
5c2569e5b4
commit
39b239eb97
11 changed files with 26 additions and 56 deletions
|
|
@ -28,10 +28,9 @@ import { SalaryRanks } from "../entities/SalaryRanks";
|
|||
import CallAPI from "../interfaces/call-api";
|
||||
import { SalaryOrgEmployee } from "../entities/SalaryOrgEmployee";
|
||||
import { SalaryProfileEmployee } from "../entities/SalaryProfileEmployee";
|
||||
import { isNullOrUndefined } from "util";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
import permission from "../interfaces/permission";
|
||||
import { addLogSequence, setLogDataDiff } from "../interfaces/utils";
|
||||
import { setLogDataDiff } from "../interfaces/utils";
|
||||
|
||||
@Route("api/v1/salary/period")
|
||||
@Tags("Salary")
|
||||
|
|
@ -1702,7 +1701,7 @@ export class SalaryPeriodController extends Controller {
|
|||
salaryPeriod.revisionId = revisionId;
|
||||
salaryPeriod.lastUpdateUserId = request.user.sub;
|
||||
salaryPeriod.lastUpdateFullName = request.user.name;
|
||||
salaryPeriod.lastUpdatedAt = new Date();
|
||||
salaryPeriod.lastUpdatedAt = new Date();
|
||||
await this.salaryPeriodRepository.save(salaryPeriod, { data: request });
|
||||
setLogDataDiff(request, { before, after: salaryPeriod });
|
||||
|
||||
|
|
@ -1825,7 +1824,7 @@ export class SalaryPeriodController extends Controller {
|
|||
chk_SalaryPeriod.lastUpdateUserId = request.user.sub;
|
||||
chk_SalaryPeriod.lastUpdateFullName = request.user.name;
|
||||
chk_SalaryPeriod.lastUpdatedAt = new Date();
|
||||
|
||||
|
||||
await this.salaryPeriodRepository.save(chk_SalaryPeriod, { data: request });
|
||||
setLogDataDiff(request, { before: beforeChk_SalaryPeriod, after: chk_SalaryPeriod });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue