@aloma.io/integration-sdk 3.8.19 → 3.8.20
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.
@@ -59,12 +59,14 @@ export const onConnect = ({ dispatcher, configSchema, config, start, }) => {
|
|
59
59
|
healthCheck: async (controller) => {
|
60
60
|
let result = { ok: true, error: null };
|
61
61
|
try {
|
62
|
+
console.log('running healthcheck');
|
62
63
|
if (oauthClient) {
|
63
64
|
await oauthClient.__healthCheck();
|
64
65
|
}
|
65
66
|
await controller.__healthCheck(configSchema);
|
66
67
|
}
|
67
68
|
catch (e) {
|
69
|
+
console.log(e);
|
68
70
|
result.ok = false;
|
69
71
|
result.error = e.message;
|
70
72
|
}
|
package/package.json
CHANGED
@@ -100,12 +100,14 @@ export const onConnect = ({
|
|
100
100
|
let result: any = {ok: true, error: null};
|
101
101
|
|
102
102
|
try {
|
103
|
+
console.log('running healthcheck')
|
103
104
|
if (oauthClient) {
|
104
105
|
await oauthClient.__healthCheck();
|
105
106
|
}
|
106
107
|
|
107
108
|
await controller.__healthCheck(configSchema);
|
108
109
|
} catch (e: any) {
|
110
|
+
console.log(e)
|
109
111
|
result.ok = false;
|
110
112
|
result.error = e.message;
|
111
113
|
}
|