mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 18:58:54 +08:00
mixed missing key entry for settings.get
This commit is contained in:
parent
64c47ec587
commit
549655394a
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ class SettingsHandler {
|
|||
return JSON.parse(row.value);
|
||||
}
|
||||
|
||||
let keyInfo = this.keys.find(k => k.key === row.key) || {};
|
||||
let keyInfo = (row && this.keys.find(k => k.key === row.key)) || {};
|
||||
let defaultValue = 'default' in options ? options.default : keyInfo.constKey ? consts[keyInfo.constKey] : undefined;
|
||||
|
||||
return row ? row.value : defaultValue;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wildduck",
|
||||
"version": "1.35.1",
|
||||
"version": "1.35.2",
|
||||
"description": "IMAP/POP3 server built with Node.js and MongoDB",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue