Fix
This commit is contained in:
@@ -15,7 +15,7 @@ params:query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body:form-urlencoded {
|
body:form-urlencoded {
|
||||||
iccid: 8935103196306448300
|
iccid: 8933201125065160331
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"setup:runtime": "mkdir -p dist/packages/node_modules && ln -sf ../sim-shared dist/packages/node_modules/sim-shared && ln -sf ../sf-consumidor-objenious dist/packages/node_modules/sim-consumidor-objenious",
|
"setup:runtime": "mkdir -p dist/packages/node_modules && ln -sf ../sim-shared dist/packages/node_modules/sim-shared && ln -sf ../sf-consumidor-objenious dist/packages/node_modules/sim-consumidor-objenious",
|
||||||
"start": "yarn setup:runtime && yarn workspaces foreach -Apiv run start",
|
"start": "yarn setup:runtime && yarn workspaces foreach -Apiv run start",
|
||||||
"typecheck": "npx tsc --noEmit",
|
"typecheck": "npx tsc --noEmit",
|
||||||
"dev": "yarn workspaces foreach -Apiv --exclude sim-objenious-cron run dev",
|
"dev": "yarn workspaces foreach -Apiv run dev",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint --fix .",
|
"lint:fix": "eslint --fix .",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
|||||||
@@ -321,13 +321,14 @@ export class SimUseCases {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO REGISTRAR EL ORDER
|
// TODO REGISTRAR EL ORDER
|
||||||
|
/*
|
||||||
if (correlation_id != undefined) {
|
if (correlation_id != undefined) {
|
||||||
await this.orderRepository.createOrder({
|
await this.orderRepository.createOrder({
|
||||||
correlation_id: correlation_id,
|
correlation_id: correlation_id,
|
||||||
order_type: "pause"
|
order_type: "pause"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
let activationDate;
|
let activationDate;
|
||||||
try {
|
try {
|
||||||
activationDate = await this.findActivationDate(suspendData)
|
activationDate = await this.findActivationDate(suspendData)
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ async function startCron() {
|
|||||||
orderRepository
|
orderRepository
|
||||||
)
|
)
|
||||||
|
|
||||||
await objTask.getPendingOperations()
|
//await objTask.getPendingOperations()
|
||||||
const PERIODO_PETICIONES = 10 * 60 * 1000
|
const PERIODO_PETICIONES = 10 * 60 * 1000
|
||||||
const interval = setInterval(async () => {
|
const interval = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ export class CheckObjeniousRequests {
|
|||||||
// Todas las validas
|
// Todas las validas
|
||||||
const operacionesValidas = pendingOperations.data
|
const operacionesValidas = pendingOperations.data
|
||||||
.filter((e) => e.request_id != undefined)
|
.filter((e) => e.request_id != undefined)
|
||||||
|
.filter((e) => e.operation != "terminate" && e.operation != "suspend")
|
||||||
|
|
||||||
|
// Filtrar suspension / terminacion
|
||||||
|
|
||||||
|
|
||||||
// Validas sin MassId
|
// Validas sin MassId
|
||||||
const solicitarMassId = operacionesValidas
|
const solicitarMassId = operacionesValidas
|
||||||
.filter((e) => e.mass_action_id == undefined)
|
.filter((e) => e.mass_action_id == undefined)
|
||||||
|
|||||||
Reference in New Issue
Block a user