@ikonintegration/ikapi 2.6.0-beta → 2.6.0-beta1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/ikapi",
3
- "version": "2.6.0-beta",
3
+ "version": "2.6.0-beta1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -19,7 +19,7 @@ export default class IKDB_DDB extends IKDB {
19
19
  }
20
20
 
21
21
  async _getConnection() {
22
- if (!DDB_CONN && !DDB_CONN_HASH && DDB_CONN_HASH != sha1(this.region)) DDB_CONN = await this._newConnection(this.config);
22
+ if ((!DDB_CONN && !DDB_CONN_HASH) || DDB_CONN_HASH != sha1(this.region)) DDB_CONN = await this._newConnection(this.config);
23
23
  return DDB_CONN;
24
24
  }
25
25
  async connect() {
@@ -32,7 +32,7 @@ export default class IKPublisher {
32
32
  }
33
33
  /* Private */
34
34
  _connect() {
35
- if (!PUBLISHER_CONN && !PUBLISHER_CONN_HASH && PUBLISHER_CONN_HASH != sha1(this.regiond)) {
35
+ if ((!PUBLISHER_CONN && !PUBLISHER_CONN_HASH) || PUBLISHER_CONN_HASH != sha1(this.regiond)) {
36
36
  //Configure when sending!
37
37
  let configObj = { region: this.region };
38
38
  if (Utils.isOffline()) configObj = { ...configObj, accessKeyId: process.env.AWS_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY };