mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
refactor: rewrite src/install with async/await
This commit is contained in:
@@ -23,7 +23,9 @@ function setup(initConfig) {
|
||||
install.values = initConfig;
|
||||
|
||||
async.series([
|
||||
install.setup,
|
||||
async function () {
|
||||
return await install.setup();
|
||||
},
|
||||
function (next) {
|
||||
var configFile = paths.config;
|
||||
if (nconf.get('config')) {
|
||||
|
||||
Reference in New Issue
Block a user