mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Fix comparison between CustomError and string
This commit is contained in:
parent
6d773f7d56
commit
b0a7237443
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ const listSessionsWithDBKey = async (dbkey) => {
|
|||
const sessionInfo = await exports.getSessionInfo(sessionID);
|
||||
sessions[sessionID] = sessionInfo;
|
||||
} catch (err) {
|
||||
if (err === 'apierror: sessionID does not exist') {
|
||||
if (err.name === 'apierror') {
|
||||
console.warn(`Found bad session ${sessionID} in ${dbkey}`);
|
||||
sessions[sessionID] = null;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue