Seguimiento de ordenes desde la ingesta

This commit is contained in:
2026-02-11 12:19:16 +01:00
parent 2c9bf9dd93
commit 46ac54f7ab
6 changed files with 52 additions and 6 deletions

View File

@@ -84,7 +84,7 @@ export class SimController {
throw new Error("Error activando la sim, no se ha especificado la oferta")
}
this.tryUseCase(msg, this.useCases.activate({
const resp = this.tryUseCase(msg, this.useCases.activate({
dueDate: this.genDueDate(DUE_DATE_SECONDS).toISOString(),
customerAccountCode: env.OBJ_CUSTOMER_CODE,
identifier: {
@@ -96,6 +96,11 @@ export class SimController {
services: []
}
}))
// TODO:
// - Crear un registro de operación
// - Si ha salido bien id de operación -> webhook?
// - Si ha salido mal notificar solo cuando se manda a dlx ??
}
}