mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
fix
This commit is contained in:
@@ -86,7 +86,7 @@ const driver = {
|
||||
let client;
|
||||
if (useDatabaseUrl) {
|
||||
client = new Redis(databaseUrl);
|
||||
client.client('SETNAME', 'dbgate');
|
||||
await client.client('SETNAME', 'dbgate');
|
||||
} else {
|
||||
if (_.isString(database) && database.startsWith('db')) db = parseInt(database.substring(2));
|
||||
if (_.isNumber(database)) db = database;
|
||||
|
||||
Reference in New Issue
Block a user