Skip to content

Commit

Permalink
fix(tbackendmanager): fix database package assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Itee committed Feb 18, 2020
1 parent 7ddbfb6 commit cf4c973
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/TBackendManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ class TBackendManager {
if ( isDefined(dbFrom)) {

// In case user specify a package where take the database of type...
database = new require(dbFrom)[ dbType ]( {
const databasePackage = require(dbFrom)
database = new databasePackage[ dbType ]( {
...{
application: this.applications,
router: this.router
Expand Down

0 comments on commit cf4c973

Please sign in to comment.