mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
typo
This commit is contained in:
@@ -28,10 +28,10 @@ async function loadConnection(driver, storedConnection, connectionMode) {
|
||||
|
||||
if (loaded.isReadOnly) {
|
||||
if (connectionMode == 'read') return loadedWithDb;
|
||||
if (connectionMode == 'write') throw new Error('Cannot wwrite readonly connection');
|
||||
if (connectionMode == 'write') throw new Error('Cannot write readonly connection');
|
||||
if (connectionMode == 'script') {
|
||||
if (driver.readOnlySessions) return loadedWithDb;
|
||||
throw new Error('Cannot wwrite readonly connection');
|
||||
throw new Error('Cannot write readonly connection');
|
||||
}
|
||||
}
|
||||
return loadedWithDb;
|
||||
|
||||
Reference in New Issue
Block a user