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.
- package/lib/backend-plus.js +1 -1
- package/package.json +1 -1
package/lib/backend-plus.js
CHANGED
|
@@ -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