Bug bucle infinito de mensajes delay <-> cola

This commit is contained in:
2026-02-03 16:39:34 +01:00
parent 762a547bea
commit 0fb0b09899
6 changed files with 25 additions and 9 deletions

View File

@@ -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(),