dcos-core-monalisav2-latam 1.1.7 → 1.1.8
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/package.json
CHANGED
|
@@ -55,6 +55,8 @@ const suggestedProductMdlz = async (event) => {
|
|
|
55
55
|
return ApiResponse.response(207, validBody.data);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
return ApiResponse.response(200, clients);
|
|
59
|
+
|
|
58
60
|
do {
|
|
59
61
|
// Se extrae las primeras filas de la lista para ejecutar las Promises
|
|
60
62
|
let dataToProcess = clients.splice(0, 10);
|
|
@@ -128,7 +130,7 @@ function validateClientsData(clients, minProductsCount, indexClientRegister, an,
|
|
|
128
130
|
setItemInformation(client.productsIncremental, 'INCREMENTAL', skusList, productsCounter);
|
|
129
131
|
|
|
130
132
|
// Se valida si la longitud de alguno de la lista de ítems válidos del cliente es menos al número mínimo de productos
|
|
131
|
-
if (productsCounter.REGULAR
|
|
133
|
+
if (productsCounter.REGULAR < minProductsCount || productsCounter.INCREMENTAL < minProductsCount) {
|
|
132
134
|
client.error = `Validate the following properties productsRegular and productsIncremental minimum ${minProductsCount} elements`;
|
|
133
135
|
notProcessedItems.push(client);
|
|
134
136
|
}
|