Skip to content

Commit

Permalink
fix(tabstractdatabase): remove extra argument in registerLocalPlugin …
Browse files Browse the repository at this point in the history
…that collide with path module
  • Loading branch information
Itee committed Aug 13, 2019
1 parent 5494000 commit 0511264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/core/databases/TAbstractDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ class TAbstractDatabase {

}

_registerLocalPlugin ( name, path ) {
_registerLocalPlugin ( name ) {

let success = false

try {

// todo use rootPath or need to resolve depth correctly !
const localPluginPath = path.join( __dirname, '../../../', 'databases/plugins/', name, name + '.js' )
const localPluginPath = path.join( __dirname, '../../../', 'databases/plugins/', name, `${name}.js` )
const plugin = require( localPluginPath )

if ( plugin instanceof TAbstractDatabasePlugin ) {
Expand Down

0 comments on commit 0511264

Please sign in to comment.