bot-functions 1.3.1 → 1.3.2
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/index.js +14 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -547,6 +547,18 @@ const insertLog2 = async (params, codigo) => {
|
|
|
547
547
|
});
|
|
548
548
|
};
|
|
549
549
|
|
|
550
|
+
const insertLogExec = async (params, datoActual, datoAnterior) => {
|
|
551
|
+
return new Promise(async function (resolve) {
|
|
552
|
+
try {
|
|
553
|
+
const insertLogExecResponse = await axios.post(process.env.INSERT_LOG_EXEC, { datoActual, datoAnterior, params });
|
|
554
|
+
return resolve(insertLogExecResponse.data.data)
|
|
555
|
+
} catch (e) {
|
|
556
|
+
|
|
557
|
+
resolve();
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
};
|
|
561
|
+
|
|
550
562
|
const checkData = async (params) => {
|
|
551
563
|
return new Promise(async (resolve) => {
|
|
552
564
|
try {
|
|
@@ -1371,5 +1383,6 @@ module.exports = {
|
|
|
1371
1383
|
diferenciaHoras,
|
|
1372
1384
|
lastDateSales,
|
|
1373
1385
|
EmailManager,
|
|
1374
|
-
manageEmails
|
|
1386
|
+
manageEmails,
|
|
1387
|
+
insertLogExec
|
|
1375
1388
|
}
|