Bug bucle infinito de mensajes delay <-> cola
This commit is contained in:
@@ -76,7 +76,10 @@ export class SimController {
|
||||
const iccid = msgData.payload.iccid
|
||||
const offer = msgData.payload.offer
|
||||
|
||||
if (offer == undefined) throw new Error("Error activando la sim, no se ha especificado la oferta")
|
||||
if (offer == undefined) {
|
||||
this.eventBus.nack(msg)
|
||||
throw new Error("Error activando la sim, no se ha especificado la oferta")
|
||||
}
|
||||
|
||||
this.tryUseCase(msg, this.useCases.activate({
|
||||
dueDate: this.genDueDate(2 * 60).toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user