Skip to content

Commit beb75df

Browse files
committed
fix: Error: Error: Class constructor cannot be invoked without 'new'
1 parent 18224a3 commit beb75df

File tree

1 file changed

+1
-1
lines changed
  • packages/cubejs-server-core/core

1 file changed

+1
-1
lines changed

packages/cubejs-server-core/core/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class CubejsServerCore {
176176
CubejsServerCore.lookupDriverClass(options.dbType).dialectClass &&
177177
CubejsServerCore.lookupDriverClass(options.dbType).dialectClass(),
178178
externalDriverFactory: process.env.CUBEJS_EXT_DB_TYPE && (
179-
() => CubejsServerCore.lookupDriverClass(process.env.CUBEJS_DB_EXT_TYPE)({
179+
() => new (CubejsServerCore.lookupDriverClass(process.env.CUBEJS_EXT_DB_TYPE))({
180180
host: process.env.CUBEJS_EXT_DB_HOST,
181181
database: process.env.CUBEJS_EXT_DB_NAME,
182182
port: process.env.CUBEJS_EXT_DB_PORT,

0 commit comments

Comments
 (0)