@8ms/helpers 1.1.87 → 1.1.89
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.
|
@@ -10,6 +10,7 @@ global.awsAthenaExpressClient = null;
|
|
|
10
10
|
*/
|
|
11
11
|
const initClient = ({ config, database, s3Bucket, s3Key }) => {
|
|
12
12
|
if (!global.awsAthenaExpressClient) {
|
|
13
|
+
console.log('athenaExpress/initClient');
|
|
13
14
|
const athenaExpress = require('athena-express');
|
|
14
15
|
const awsSdk = require('aws-sdk');
|
|
15
16
|
const formattedConfig = (0, getConfig_1.default)({ config, isAthenaExpress: true });
|
package/initClients.js
CHANGED
|
@@ -20,7 +20,9 @@ const initClient_12 = __importDefault(require("./prisma/initClient"));
|
|
|
20
20
|
* Function to simplify initialising the clients.
|
|
21
21
|
*/
|
|
22
22
|
const initClients = async ({ athenaExpress, awsConfig, awsGlue, awsLambda, awsS3, awsSes, awsSsm, deepcrawlApi, googleAds, googleConfig, googleBigQuery, googleSheets, googleStorage, prisma, }) => {
|
|
23
|
+
console.log('athenaExpress', athenaExpress);
|
|
23
24
|
if (athenaExpress) {
|
|
25
|
+
console.log('loading athena express?');
|
|
24
26
|
(0, initClient_1.default)({
|
|
25
27
|
config: awsConfig,
|
|
26
28
|
database: athenaExpress.database,
|