Bug de correlation_id en las llamadas a objenious

This commit is contained in:
2026-03-06 11:02:18 +01:00
parent b97f422261
commit 58bedc42f1
3 changed files with 15 additions and 4 deletions

View File

@@ -4,4 +4,8 @@ enableGlobalCache: false
nodeLinker: node-modules
npmRegistryServer: "https://git.savefamilygps.net/api/packages/alvarsanmartin/npm/"
npmScopes:
db-migrate:
npmRegistryServer: "https://git.savefamilygps.net/api/packages/alvarsanmartin/npm/"
npmRegistryServer: "https://registry.npmjs.org/"

View File

@@ -110,7 +110,10 @@ export class SimUseCases {
const OPERATION_URL = "/actions/activateLine"
return async () => {
const req = this.httpClient.client.post(OPERATION_URL, {
...activationData
dueDate: activationData.dueDate,
identifier: activationData.identifier,
costummerAccountCode: activationData.customerAccountCode,
offer: activationData.offer
})
try {
@@ -225,7 +228,11 @@ export class SimUseCases {
const OPERATION_URL = "/actions/suspendLine"
return this.generateUseCase({
correlation_id: suspendData.correlation_id,
operationPayload: suspendData,
operationPayload: {
dueDate: suspendData.dueDate,
identifier: suspendData.identifier,
customerAccountCode: suspendData.customerAccountCode,
},
url: OPERATION_URL,
iccid: suspendData.identifier.identifiers[0], //
operation: "suspend"

View File

@@ -3,6 +3,7 @@ export type ActionData = {
correlation_id?: string;
dueDate: string, // isodate
filter?: {} // no se si hace falta
customerAccountCode: "9.49411.10" | string,
identifier: {
identifiers: string[]
identifierType: "IMSI" | "MSISDN" | "REFERENCE" | "ICCID" | "IMEI"
@@ -10,7 +11,6 @@ export type ActionData = {
}
export type ActivationData = ActionData & {
customerAccountCode: "9.49411.10" | string,
offer: {
code: string | "SAVEFAMILY1" | "SAVEFAMILY2",
services: any[]