Error key evento
This commit is contained in:
@@ -19,7 +19,7 @@ export class SimRouter {
|
||||
["activate", this.simController.activate()],
|
||||
["pause", this.simController.suspend()],
|
||||
["cancel", this.simController.terminate()],
|
||||
["reactivation", this.simController.reActivate()],
|
||||
["reactivate", this.simController.reActivate()],
|
||||
["preActivate", this.simController.preActivate()]
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -145,6 +145,7 @@ export class SimController {
|
||||
onSuccess: console.log
|
||||
})
|
||||
}
|
||||
|
||||
public cancelation() {
|
||||
return this.controllerGenerator<{ iccid: string }, { iccid: string, compañia: string }>({
|
||||
validator: iccidValidator,
|
||||
|
||||
@@ -133,7 +133,7 @@ export class SimUsecases {
|
||||
async reActivation(args: { iccid: string, compañia: string, offer: string }):
|
||||
Promise<Result<string, { iccid: string, message_id: string, operation: "reactivate" }>> {
|
||||
const activationEvent = <SimEvents.activation>{
|
||||
key: `sim.${args.compañia}.reactivation`,
|
||||
key: `sim.${args.compañia}.reactivate`,
|
||||
payload: {
|
||||
iccid: args.iccid,
|
||||
offer: args.offer
|
||||
|
||||
@@ -24,7 +24,7 @@ export namespace SimEvents {
|
||||
}
|
||||
|
||||
export type reActivation = DomainEvent & {
|
||||
key: `sim.${string}.reActivate`,
|
||||
key: `sim.${string}.reactivate`,
|
||||
payload: {
|
||||
iccid: string
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user