Problema de creacion de operacion de pausa/cancelacion
This commit is contained in:
@@ -11,7 +11,7 @@ post {
|
||||
}
|
||||
|
||||
body:form-urlencoded {
|
||||
iccid: 8933201125065160414
|
||||
iccid: 8933201125065160380
|
||||
offer: SAVEFAMILY1
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user