Fixed session key rotation problem with a default empty array on null value. (#5896)
parent
b1c34b5dac
commit
4835c8e04d
|
@ -160,7 +160,7 @@ class SecretRotator {
|
||||||
// TODO: This is racy. If two instances start up at the same time and there are no existing
|
// 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
|
// 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.
|
// 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 currentParams = null;
|
||||||
let currentId = null;
|
let currentId = null;
|
||||||
const dbWrites = [];
|
const dbWrites = [];
|
||||||
|
|
Loading…
Reference in New Issue