fix issues #2428 #2383
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
This commit is contained in:
parent
57dc171997
commit
e7a973b764
2 changed files with 6 additions and 4 deletions
|
|
@ -15,6 +15,7 @@ import {
|
||||||
import HttpError from "../interfaces/http-error";
|
import HttpError from "../interfaces/http-error";
|
||||||
import HttpStatusCode from "../interfaces/http-status";
|
import HttpStatusCode from "../interfaces/http-status";
|
||||||
import { addLogSequence } from "../interfaces/utils";
|
import { addLogSequence } from "../interfaces/utils";
|
||||||
|
import HttpSuccess from "../interfaces/http-success";
|
||||||
|
|
||||||
interface CachedToken {
|
interface CachedToken {
|
||||||
token: string;
|
token: string;
|
||||||
|
|
@ -88,7 +89,8 @@ export class ExRetirementController extends Controller {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return res.data;
|
// return res.data;
|
||||||
|
return new HttpSuccess(res.data.data);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
if (error.response?.status === 500 && retryCount < maxRetries - 1) {
|
if (error.response?.status === 500 && retryCount < maxRetries - 1) {
|
||||||
TokenCache.delete(`${clientId}:${clientSecret}`);
|
TokenCache.delete(`${clientId}:${clientSecret}`);
|
||||||
|
|
|
||||||
|
|
@ -1433,10 +1433,10 @@ export class ProfileSalaryTempController extends Controller {
|
||||||
profileEmployeeId: x.profileEmployeeId,
|
profileEmployeeId: x.profileEmployeeId,
|
||||||
dateStart: x.commandDateAffect,
|
dateStart: x.commandDateAffect,
|
||||||
dateEnd: null,
|
dateEnd: null,
|
||||||
posNo: `${x.posNoAbb} ${x.posNo}`,
|
posNo: `${x.posNoAbb ?? ""} ${x.posNo ?? ""}`.trim(),
|
||||||
position: x.positionName,
|
position: x.positionName,
|
||||||
commandId: x.commandId,
|
commandId: x.commandId,
|
||||||
refCommandNo: `${x.commandNo}/${x.commandYear}`,
|
refCommandNo: [x.commandNo, x.commandYear].filter(Boolean).join("/") || undefined,
|
||||||
refCommandDate: x.commandDateAffect,
|
refCommandDate: x.commandDateAffect,
|
||||||
status: false,
|
status: false,
|
||||||
isDeleted: false,
|
isDeleted: false,
|
||||||
|
|
@ -1456,7 +1456,7 @@ export class ProfileSalaryTempController extends Controller {
|
||||||
dateStart: x.commandDateAffect,
|
dateStart: x.commandDateAffect,
|
||||||
dateEnd: null,
|
dateEnd: null,
|
||||||
commandId: x.commandId,
|
commandId: x.commandId,
|
||||||
commandNo: `${x.commandNo}/${x.commandYear}`,
|
commandNo: [x.commandNo, x.commandYear].filter(Boolean).join("/") || undefined,
|
||||||
commandName: x.commandName ?? "ให้ช่วยราชการ",
|
commandName: x.commandName ?? "ให้ช่วยราชการ",
|
||||||
refCommandDate: x.commandDateSign,
|
refCommandDate: x.commandDateSign,
|
||||||
refId: x.refId,
|
refId: x.refId,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue