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');