@12stonechurch/omnihive-worker-common
Advanced tools
Comparing version
{ | ||
"name": "@12stonechurch/omnihive-worker-common", | ||
"version": "2.0.50", | ||
"version": "2.0.51", | ||
"description": "OmniHive Custom Function package", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@12stonechurch/omnihive-worker-cloudinary": "2.0.50", | ||
"@12stonechurch/omnihive-worker-elastic": "2.0.50", | ||
"@12stonechurch/omnihive-worker-cloudinary": "2.0.51", | ||
"@12stonechurch/omnihive-worker-elastic": "2.0.51", | ||
"@withonevision/omnihive-client": "6.2.54", | ||
@@ -31,0 +31,0 @@ "@withonevision/omnihive-core": "6.2.54", |
@@ -6,2 +6,3 @@ /// <reference types="src/types/globals.omnihive" /> | ||
graphRootUrl: string; | ||
accessToken?: string; | ||
private static singleton; | ||
@@ -8,0 +9,0 @@ static getSingleton: () => GraphService; |
@@ -19,2 +19,3 @@ "use strict"; | ||
this.graphRootUrl = ""; | ||
this.accessToken = ""; | ||
this.init = (workers, environmentVariables) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -33,2 +34,5 @@ try { | ||
} | ||
if (this.accessToken) { | ||
omnihive_client_1.OmniHiveClient.getSingleton().setAccessToken(this.accessToken); | ||
} | ||
const results = yield AwaitHelper_1.AwaitHelper.execute(omnihive_client_1.OmniHiveClient.getSingleton().graphClient(this.graphRootUrl, query)); | ||
@@ -51,2 +55,5 @@ return results; | ||
} | ||
if (this.accessToken) { | ||
omnihive_client_1.OmniHiveClient.getSingleton().setAccessToken(this.accessToken); | ||
} | ||
const results = yield AwaitHelper_1.AwaitHelper.execute(omnihive_client_1.OmniHiveClient.getSingleton().runCustomSql(this.graphRootUrl, query)); | ||
@@ -53,0 +60,0 @@ return results; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39459
1.67%479
1.7%+ Added
+ Added
- Removed
- Removed