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

@@ -66,8 +66,6 @@ export class SimController {
const { iccid, offer } = req.body
//TODO: incluir lo de las offers
const compañia = this.compañiaFromIccid(iccid)
if (compañia == undefined) {
@@ -81,7 +79,7 @@ export class SimController {
try {
await this.simUseCases.activation({ iccid, compañia })
await this.simUseCases.activation({ iccid, compañia, offer })
res.status(200).json({
iccid: iccid,

View File

@@ -34,7 +34,7 @@ export class SimUsecases {
return this.eventBus.publish([activationEvent])
}
async activation(args: { iccid: string, compañia: string, offer?: string }) {
async activation(args: { iccid: string, compañia: string, offer: string }) {
const activationEvent = <SimEvents.activation>{
key: `sim.${args.compañia}.activate`,