Browse Source

Allow using a different Redis database

Kristian Vos 4 năm trước cách đây
mục cha
commit
86d909b119
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/logic/notifications.js

+ 1 - 1
backend/logic/notifications.js

@@ -138,7 +138,7 @@ class NotificationsModule extends CoreClass {
                 });
             });
 
-            this.sub.psubscribe("__keyevent@0__:expired");
+            this.sub.psubscribe(`__keyevent@${this.pub.options.db}__:expired`);
         });
     }