Problema de creacion de operacion de pausa/cancelacion

This commit is contained in:
2026-04-15 13:50:20 +02:00
parent cffee785b2
commit 7001fccbf7
4 changed files with 8 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ post {
}
body:form-urlencoded {
iccid: 8933201125065160414
iccid: 8933201125065160380
offer: SAVEFAMILY1
}

View File

@@ -306,9 +306,9 @@ export class SimUseCases {
status: "running",
correlation_id: correlation_id
}
this.logOperation(operation)
.then().catch(e => console.error("Error login operation", e))
// No se registra hasta que no pase por la tabla de pausas
// this.logOperation(operation)
// .then().catch(e => console.error("Error login operation", e))
const fail = (error: string) => {
console.error("[Sim.usecases]", error)
@@ -394,9 +394,10 @@ export class SimUseCases {
correlation_id: correlation_id
}
/**
this.logOperation(operation)
.then().catch(e => console.error("Error login operation", e))
*/
// Caso que la task no se pueda crear en la BDD
if (taskCreated.error != undefined) {
console.error("[Sim.usecases]", taskCreated.error)

View File

@@ -27,8 +27,7 @@ export type ObjeniousOperation = {
}
export type ObjeniousOperationChange = {
id?: number;
operation_id: number;
id?: number; operation_id: number;
info?: string | null;
error?: string | null;
new_status: StatusEnum;

View File

@@ -33,7 +33,7 @@ describe("[Integration] Test API requests", () => {
* - Cuando se va a hacer una operacion de sim hay que cancelarla directamente si:
* - Ya hay una en curso del mismo tipo.
* - Ya ha terminado una del mismo tipo.
* - Se ignoran las errorneas
* - Se ignoran las erroneas
*/
})
})