@aloma.io/integration-sdk 3.8.18 → 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.
@@ -105,9 +105,7 @@ export declare abstract class AbstractController {
|
|
105
105
|
__healthCheck(configSchema: {
|
106
106
|
[key: string]: ConfigField;
|
107
107
|
}): Promise<void>;
|
108
|
-
defaultConfigCheck
|
109
|
-
[key: string]: ConfigField;
|
110
|
-
}): Promise<void>;
|
108
|
+
private defaultConfigCheck;
|
111
109
|
_doStart(config: any, oauth: any, newTask: any, updateTask: any, getClient: any, getBlob: any, getBlobContent: any, createBlob: any): Promise<void>;
|
112
110
|
_doStop(isShutdown?: boolean): Promise<void>;
|
113
111
|
}
|
@@ -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
package/src/controller/index.mts
CHANGED
@@ -183,7 +183,7 @@ export abstract class AbstractController {
|
|
183
183
|
}
|
184
184
|
}
|
185
185
|
|
186
|
-
async defaultConfigCheck(configSchema: {[key: string]: ConfigField}): Promise<void> {
|
186
|
+
private async defaultConfigCheck(configSchema: {[key: string]: ConfigField}): Promise<void> {
|
187
187
|
const config = this.config;
|
188
188
|
|
189
189
|
const missing = Object.entries(configSchema)
|
@@ -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
|
}
|