soajs.controller 4.2.17 → 4.2.18

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/.travis.yml CHANGED
@@ -58,6 +58,12 @@ jobs:
58
58
  - docker push soajsorg/gateway
59
59
  - docker push soajsorg/gateway:${PACKAGE_VERSION}
60
60
  - docker push soajsorg/gateway:${MAJOR_VERSION}.x
61
+ before_deploy:
62
+ - yes | gem update --system --force
63
+ - gem install bundler
64
+ - gem install faraday-net_http -v '3.3.0'
65
+ - gem install uri
66
+ - gem install logger
61
67
  deploy:
62
68
  on:
63
69
  all_branches: true
@@ -33,7 +33,9 @@ module.exports = () => {
33
33
  let userId = null;
34
34
  if (req.soajs.uracDriver) {
35
35
  let uracObj = req.soajs.uracDriver.getProfile();
36
- userId = uracObj._id;
36
+ if (uracObj) {
37
+ userId = uracObj._id;
38
+ }
37
39
  }
38
40
 
39
41
  if (userId) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "soajs.controller",
3
3
  "description": "soajs multi tenant API gateway",
4
- "version": "4.2.17",
4
+ "version": "4.2.18",
5
5
  "author": {
6
6
  "name": "soajs team",
7
7
  "email": "team@soajs.org"