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