mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Fixed session key rotation problem with a default empty array on null value. (#5896)
This commit is contained in:
parent
b1c34b5dac
commit
4835c8e04d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue