mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 20:26:49 +02:00
Fixed session key rotation problem with a default empty array on null value. (#5896)
This commit is contained in:
parent
3f6ba064d8
commit
efdf9dbe36
@ -160,7 +160,7 @@ class SecretRotator {
|
||||
// TODO: This is racy. If two instances start up at the same time and there are no existing
|
||||
// matching publications, each will generate and publish their own paramters. In practice this
|
||||
// is unlikely to happen, and if it does it can be fixed by restarting both Etherpad instances.
|
||||
const dbKeys = await db.findKeys(`${this._dbPrefix}:*`, null);
|
||||
const dbKeys = await db.findKeys(`${this._dbPrefix}:*`, null) || [];
|
||||
let currentParams = null;
|
||||
let currentId = null;
|
||||
const dbWrites = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user