Skip to content

Commit

Permalink
fix: fixed get database conditional for cleanup-sqlite job
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed May 8, 2024
1 parent 59984ce commit 9db736c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/get-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 9db736c

Please sign in to comment.