backend-plus 1.16.13 → 1.16.14

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.
@@ -734,7 +734,7 @@ AppBackend.prototype.start = function start(opts){
734
734
  pg.logLastError.inFileName = 'last-pg-error-local.sql'
735
735
  }
736
736
  be.getDbClient = function getDbClient(req){
737
- var paramsDb = be.DoubleDragon?.dbParams?.[req?.user] ?? be.config.db;
737
+ var paramsDb = be.DoubleDragon?.dbParams?.[req?.user?.[be.config.login.userFieldName]] ?? be.config.db;
738
738
  return pg.connect(paramsDb).then(function(client){
739
739
  var dbAppName=req?(
740
740
  ((req.user||{})[be.config.login.userFieldName]||'!logged')+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for typed controls",
4
- "version": "1.16.13",
4
+ "version": "1.16.14",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",