@open-wa/wa-automate 4.30.5 → 4.30.6
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/api/Client.js +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/server.js +1 -1
- package/package.json +1 -1
package/dist/api/Client.js
CHANGED
@@ -3393,7 +3393,7 @@ class Client {
|
|
3393
3393
|
const t = ((0, tools_1.now)() - whStart).toFixed(0);
|
3394
3394
|
logging_1.log.info("Client Webhook", event, status, t);
|
3395
3395
|
})
|
3396
|
-
.catch(err =>
|
3396
|
+
.catch(err => logging_1.log.error(`WEBHOOK ERROR: `, url, err.message));
|
3397
3397
|
}));
|
3398
3398
|
}));
|
3399
3399
|
}), 10000);
|
package/dist/cli/index.js
CHANGED
@@ -34,7 +34,7 @@ const ready = (config) => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
34
|
sessionId: config.sessionId,
|
35
35
|
namespace: "READY"
|
36
36
|
}
|
37
|
-
}).catch(err =>
|
37
|
+
}).catch(err => index_1.log.error(`WEBHOOK ERROR: ${config.readyWebhook} ${err.message}`));
|
38
38
|
});
|
39
39
|
function start() {
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -93,7 +93,7 @@ function start() {
|
|
93
93
|
}).then(({ status }) => {
|
94
94
|
const t = ((0, index_1.now)() - whStart).toFixed(0);
|
95
95
|
index_1.log.info("EV Webhook", namespace, status, t);
|
96
|
-
}).catch(err =>
|
96
|
+
}).catch(err => index_1.log.error(`WEBHOOK ERROR: ${cliConfig.ev} ${err.message}`));
|
97
97
|
}));
|
98
98
|
}
|
99
99
|
//These things can be done before the client is created
|
package/dist/cli/server.js
CHANGED
@@ -232,7 +232,7 @@ const setupTwilioCompatibleWebhook = (cliConfig, client) => {
|
|
232
232
|
return yield client.sendText(message.from, msg['#']);
|
233
233
|
}
|
234
234
|
catch (error) {
|
235
|
-
|
235
|
+
__1.log.error("TWILIO-COMPAT WEBHOOK ERROR", url, error.message);
|
236
236
|
}
|
237
237
|
}));
|
238
238
|
};
|
package/package.json
CHANGED