From 0511264c05345eb65bcd2d4285d2cd540d91abea Mon Sep 17 00:00:00 2001 From: Tristan VALCKE Date: Tue, 13 Aug 2019 09:52:43 +0200 Subject: [PATCH] fix(tabstractdatabase): remove extra argument in registerLocalPlugin that collide with path module --- sources/core/databases/TAbstractDatabase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/core/databases/TAbstractDatabase.js b/sources/core/databases/TAbstractDatabase.js index f946021..60b9529 100644 --- a/sources/core/databases/TAbstractDatabase.js +++ b/sources/core/databases/TAbstractDatabase.js @@ -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 ) {