mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 01:26:01 +00:00
fixes
This commit is contained in:
@@ -166,9 +166,11 @@ module.exports = {
|
|||||||
|
|
||||||
list_meta: true,
|
list_meta: true,
|
||||||
async list() {
|
async list() {
|
||||||
return portalConnections && !platformInfo.allowShellConnection
|
if (portalConnections) {
|
||||||
? portalConnections.map(maskConnection)
|
if (platformInfo.allowShellConnection) return portalConnections;
|
||||||
: this.datastore.find();
|
return portalConnections.map(maskConnection);
|
||||||
|
}
|
||||||
|
return this.datastore.find();
|
||||||
},
|
},
|
||||||
|
|
||||||
test_meta: true,
|
test_meta: true,
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ function requireEngineDriver(connection) {
|
|||||||
if (engine.includes('@')) {
|
if (engine.includes('@')) {
|
||||||
const [shortName, packageName] = engine.split('@');
|
const [shortName, packageName] = engine.split('@');
|
||||||
const plugin = requirePlugin(packageName);
|
const plugin = requirePlugin(packageName);
|
||||||
return plugin.drivers.find(x => x.engine == engine);
|
if (plugin.drivers) {
|
||||||
|
return plugin.drivers.find(x => x.engine == engine);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
throw new Error(`Could not find engine driver ${engine}`);
|
throw new Error(`Could not find engine driver ${engine}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user