fix undefined Sync section in the config file

This commit is contained in:
azivner
2018-08-30 23:28:38 +02:00
parent ce9805c5bc
commit cfa4cc4931
3 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ const config = require('./config');
*/
async function get(name) {
return config['Sync'][name] || await optionService.getOption(name);
return (config['Sync'] && config['Sync'][name]) || await optionService.getOption(name);
}
module.exports = {