You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix dirty selected DB check
This commit is contained in:
@@ -909,7 +909,7 @@ export default class RedisClient<
|
||||
*/
|
||||
resetIfDirty() {
|
||||
let shouldReset = false;
|
||||
if (this._self.#selectedDB !== this._self.#options?.database ?? 0) {
|
||||
if (this._self.#selectedDB !== (this._self.#options?.database ?? 0)) {
|
||||
console.warn('Returning a client with a different selected DB');
|
||||
shouldReset = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user