This commit is contained in:
2026-04-27 13:32:55 +02:00
parent e1450c6e97
commit 166c940295
5 changed files with 10 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ async function startCron() {
orderRepository
)
await objTask.getPendingOperations()
//await objTask.getPendingOperations()
const PERIODO_PETICIONES = 10 * 60 * 1000
const interval = setInterval(async () => {
try {

View File

@@ -37,6 +37,11 @@ export class CheckObjeniousRequests {
// Todas las validas
const operacionesValidas = pendingOperations.data
.filter((e) => e.request_id != undefined)
.filter((e) => e.operation != "terminate" && e.operation != "suspend")
// Filtrar suspension / terminacion
// Validas sin MassId
const solicitarMassId = operacionesValidas
.filter((e) => e.mass_action_id == undefined)