feat: Kernel module

This commit is contained in:
NGPixel
2017-10-07 22:44:35 -04:00
parent 2be7f71be8
commit c26fae2ede
13 changed files with 264 additions and 560 deletions

View File

@@ -75,13 +75,14 @@ module.exports = {
}
}
}).then(results => {
if (_.isArray(results) && results.length > 0) {
if (_.isArray(results) && results.length === subsets.length) {
results.forEach(result => {
wiki.config[result.key] = result.config
})
return true
} else {
return Promise.reject(new Error('Invalid DB Configuration result set'))
wiki.logger.warn('DB Configuration is empty or incomplete.')
return false
}
})
}