mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
typo
This commit is contained in:
parent
8824262395
commit
04f25c4535
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user