แก้ path call api
This commit is contained in:
parent
c7920c2657
commit
372e6d8973
3 changed files with 102 additions and 104 deletions
|
|
@ -37,7 +37,6 @@ import {
|
|||
import { EmployeePosLevel } from "../entities/EmployeePosLevel";
|
||||
import { EmployeePosType } from "../entities/EmployeePosType";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
import { Position } from "../entities/Position";
|
||||
import { Province } from "../entities/Province";
|
||||
import { District } from "../entities/District";
|
||||
import { SubDistrict } from "../entities/SubDistrict";
|
||||
|
|
@ -63,7 +62,6 @@ import {
|
|||
} from "../entities/ProfileEmployeeEmployment";
|
||||
import { ProfileEmployeeEmploymentHistory } from "../entities/ProfileEmployeeEmploymentHistory";
|
||||
import CallAPI from "../interfaces/call-api";
|
||||
import e from "cors";
|
||||
import { EmployeePosition } from "../entities/EmployeePosition";
|
||||
import { ProfileInsignia } from "../entities/ProfileInsignia";
|
||||
import { ProfileLeave } from "../entities/ProfileLeave";
|
||||
|
|
@ -3131,7 +3129,7 @@ export class ProfileEmployeeController extends Controller {
|
|||
});
|
||||
if (profile != null) {
|
||||
await new CallAPI()
|
||||
.PostData(request, "org/profile-employee/salary", {
|
||||
.PostData(request, "/org/profile-employee/salary", {
|
||||
profileEmployeeId: profile.id,
|
||||
date: new Date(),
|
||||
amount: v.amount,
|
||||
|
|
@ -3148,9 +3146,9 @@ export class ProfileEmployeeController extends Controller {
|
|||
profile.statusTemp = "DONE";
|
||||
profile.employeeClass = "PERM";
|
||||
await this.profileRepo.save(profile);
|
||||
});
|
||||
})
|
||||
await new CallAPI()
|
||||
.PostData(request, "org/employee/pos/report/current", {
|
||||
.PostData(request, "/org/employee/pos/report/current", {
|
||||
posmasterId: profile.posmasterIdTemp,
|
||||
positionId: profile.positionIdTemp,
|
||||
profileId: profile.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue