From 9db736c1858a841cee16f26b151efe83f577dc38 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Wed, 8 May 2024 16:02:06 -0500 Subject: [PATCH] fix: fixed get database conditional for cleanup-sqlite job --- helpers/get-database.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/get-database.js b/helpers/get-database.js index ab39b69788..7344d12bae 100644 --- a/helpers/get-database.js +++ b/helpers/get-database.js @@ -182,7 +182,8 @@ async function getDatabase( if ( instance?.wsp?.constructor?.name !== 'WebSocketAsPromised' && - (!instance?.wsp || !instance.wsp[Symbol.for('isWSP')]) + (!instance?.wsp || !instance.wsp[Symbol.for('isWSP')]) && + !instance[Symbol.for('isWSP')] ) throw new TypeError('WebSocketAsPromised instance required');