n8n-nodes-cribops 0.2.1 → 0.2.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/dist/package.json +1 -1
- package/dist/utils/HiveClient.js +4 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/utils/HiveClient.js
CHANGED
|
@@ -38,7 +38,10 @@ class HiveClient {
|
|
|
38
38
|
async execute(operation, payload) {
|
|
39
39
|
const jsonPayload = JSON.stringify(payload);
|
|
40
40
|
const result = await this.redis.call('HIVE.EXEC', operation, jsonPayload);
|
|
41
|
-
|
|
41
|
+
if (result === null || result === undefined) {
|
|
42
|
+
throw new Error(`HIVE.EXEC ${operation} returned null - is Hive running and responding?`);
|
|
43
|
+
}
|
|
44
|
+
return JSON.parse(String(result));
|
|
42
45
|
}
|
|
43
46
|
async ping() {
|
|
44
47
|
return this.execute('ping', {});
|