cardus 0.0.9 → 0.0.10

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
@@ -104,7 +104,7 @@ class IntegrationManager {
104
104
  const parsedOrder = modificarOrdenOriginal({ originalOrder: order });
105
105
  const duplicatedTempShipment = yield integrationsService.checkDuplicateTempShipment(parsedOrder.codigoEnvioExterno, idUsuario);
106
106
  if (duplicatedTempShipment)
107
- return;
107
+ throw new Error('Envio Duplicado');
108
108
  return this.insertOrder({
109
109
  order: parsedOrder,
110
110
  agencyId,
package/index.ts CHANGED
@@ -82,7 +82,7 @@ export class IntegrationManager {
82
82
  parsedOrder.codigoEnvioExterno,
83
83
  idUsuario
84
84
  );
85
- if (duplicatedTempShipment) return;
85
+ if (duplicatedTempShipment) throw new Error('Envio Duplicado');
86
86
 
87
87
  return this.insertOrder({
88
88
  order: parsedOrder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",