Bug bucle infinito de mensajes delay <-> cola
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user