We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f51b9 commit 1006e3bCopy full SHA for 1006e3b
packages/client/lib/client/index.ts
@@ -909,7 +909,7 @@ export default class RedisClient<
909
*/
910
resetIfDirty() {
911
let shouldReset = false;
912
- if (this._self.#selectedDB !== this._self.#options?.database ?? 0) {
+ if (this._self.#selectedDB !== (this._self.#options?.database ?? 0)) {
913
console.warn('Returning a client with a different selected DB');
914
shouldReset = true;
915
}
0 commit comments