cardus 0.0.73 → 0.0.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -191,10 +191,10 @@ class IntegrationManager {
191
191
  return __awaiter(this, arguments, void 0, function* ({ user, tempShimpmentIds, countryName }) {
192
192
  const idUsuario = user.id_usuario;
193
193
  const { configurationService, llmAPIService } = this.services;
194
- const insert = (data, tempShimpmentId) => {
194
+ const insert = (data) => {
195
195
  data.forEach((tempContent) => {
196
196
  if (tempContent.contenido) {
197
- this.dataToInsert.contents.push(Object.assign(Object.assign({}, tempContent), { id_envio: tempShimpmentId }));
197
+ this.dataToInsert.contents.push(Object.assign({}, tempContent));
198
198
  }
199
199
  });
200
200
  };
@@ -242,11 +242,7 @@ class IntegrationManager {
242
242
  }
243
243
  if (shipmentContent) {
244
244
  shipmentContent = cleanContentData(shipmentContent);
245
- tempShimpmentIds.forEach((tempShimpmentId) => {
246
- if (shipmentContent) {
247
- insert(shipmentContent, tempShimpmentId);
248
- }
249
- });
245
+ insert(shipmentContent);
250
246
  }
251
247
  });
252
248
  }
package/index.ts CHANGED
@@ -263,15 +263,11 @@ export class IntegrationManager {
263
263
  const idUsuario = user.id_usuario as number;
264
264
  const { configurationService, llmAPIService } = this.services;
265
265
 
266
- const insert = (
267
- data: UserDefaultConfigurationContent[],
268
- tempShimpmentId: number
269
- ) => {
266
+ const insert = (data: UserDefaultConfigurationContent[]) => {
270
267
  data.forEach((tempContent) => {
271
268
  if (tempContent.contenido) {
272
269
  this.dataToInsert.contents.push({
273
- ...tempContent,
274
- id_envio: tempShimpmentId
270
+ ...tempContent
275
271
  });
276
272
  }
277
273
  });
@@ -341,11 +337,7 @@ export class IntegrationManager {
341
337
 
342
338
  if (shipmentContent) {
343
339
  shipmentContent = cleanContentData(shipmentContent);
344
- tempShimpmentIds.forEach((tempShimpmentId) => {
345
- if (shipmentContent) {
346
- insert(shipmentContent, tempShimpmentId);
347
- }
348
- });
340
+ insert(shipmentContent);
349
341
  }
350
342
  }
351
343
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",