session-sync-auth-site 3.0.0 → 3.0.1

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": "session-sync-auth-site",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "main": "src/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@ const authenticate = ({
23
23
  // Connect to DB if not already connected
24
24
  if(!global.sessionSyncAuthSiteConnection) {
25
25
  console.log('Establishing DB connection for session-sync-auth-site...')
26
- setUpConnection(connectionInfo)
26
+ await setUpConnection(connectionInfo)
27
27
  console.log('...DB connection established for session-sync-auth-site.')
28
28
  }
29
29
 
@@ -22,7 +22,7 @@ const setUpConnection = require('./setUpConnection')
22
22
  throw new Error(`BAD_PARAMS`)
23
23
  }
24
24
 
25
- setUpConnection({ connectionStr })
25
+ await setUpConnection({ connectionStr })
26
26
 
27
27
  await global.sessionSyncAuthSiteConnection.query(
28
28
  `