Bug preactivacion si id de operacion
This commit is contained in:
@@ -164,15 +164,16 @@ export class SimUsecases {
|
||||
Promise<Result<string, { iccid: string, message_id: string, operation: "preactivation" }>> {
|
||||
|
||||
const preActivationEvent = <SimEvents.preActivation>{
|
||||
key: `sim.${args.compañia}.preActivate`,
|
||||
key: `sim.${args.compañia}.preactivate`,
|
||||
payload: {
|
||||
iccid: args.iccid
|
||||
}
|
||||
}
|
||||
console.log("[d] Pre - activation ", preActivationEvent)
|
||||
await this.eventBus.publish([preActivationEvent])
|
||||
const preactivationWithId = this.addMessage_id(preActivationEvent)
|
||||
const createdOrder = await this.saveOrder<SimEvents.preActivation>(preactivationWithId)
|
||||
|
||||
const preActivationWithId = this.addMessage_id(preActivationEvent)
|
||||
console.log("[d] Pre - activation ", preActivationWithId)
|
||||
await this.eventBus.publish([preActivationWithId])
|
||||
const createdOrder = await this.saveOrder<SimEvents.preActivation>(preActivationWithId)
|
||||
if (createdOrder.error != undefined) {
|
||||
console.error(createdOrder.error)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user