fix premature async return
This commit is contained in:
parent
e58d018e50
commit
89badfb670
|
@ -1009,10 +1009,10 @@
|
||||||
|
|
||||||
console.info('[first] compiling theme assets');
|
console.info('[first] compiling theme assets');
|
||||||
return forEachAsync(themes, compileThemeEntity).then(function () {
|
return forEachAsync(themes, compileThemeEntity).then(function () {
|
||||||
console.info('compiling root pages');
|
console.info('compiling article pages');
|
||||||
return forEachAsync(desi.content.root, compileContentEntity).then(function () {
|
return forEachAsync(desi.content.collections, compileContentEntity).then(function () {
|
||||||
console.info('compiling article pages');
|
console.info('compiling root pages');
|
||||||
desi.content.collections.forEach(compileContentEntity);
|
return forEachAsync(desi.content.root, compileContentEntity);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
desi.compiled = compiled;
|
desi.compiled = compiled;
|
||||||
return desi;
|
return desi;
|
||||||
|
|
Loading…
Reference in New Issue