From 04f25c45357be1b23538174708d01e748820635e Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 20 Mar 2022 08:43:31 +0100 Subject: [PATCH] typo --- packages/api/src/utility/connectUtility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/utility/connectUtility.js b/packages/api/src/utility/connectUtility.js index f4288922..629f5c58 100644 --- a/packages/api/src/utility/connectUtility.js +++ b/packages/api/src/utility/connectUtility.js @@ -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;