Error endpoint
This commit is contained in:
@@ -141,7 +141,7 @@ export class SimController {
|
||||
return { iccid, compañia, offer }
|
||||
},
|
||||
useCase: (args) => this.simUseCases.reActivation(args),
|
||||
onError: (d, e) => console.error("[x] Error activacion: ", d, e),
|
||||
onError: (d, e) => console.error("[x] Error reactivacion: ", d, e),
|
||||
onSuccess: console.log
|
||||
})
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ export class SimUsecases {
|
||||
}
|
||||
|
||||
async reActivation(args: { iccid: string, compañia: string, offer: string }):
|
||||
Promise<Result<string, { iccid: string, message_id: string, operation: "reactivation" }>> {
|
||||
Promise<Result<string, { iccid: string, message_id: string, operation: "reactivate" }>> {
|
||||
const activationEvent = <SimEvents.activation>{
|
||||
key: `sim.${args.compañia}.reactivation`,
|
||||
payload: {
|
||||
@@ -154,7 +154,7 @@ export class SimUsecases {
|
||||
return {
|
||||
data: {
|
||||
iccid: args.iccid,
|
||||
operation: "reactivation",
|
||||
operation: "reactivate",
|
||||
message_id: createdOrder.data?.correlation_id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user