fix premature async return

This commit is contained in:
AJ ONeal 2015-01-14 05:56:18 -05:00
parent e58d018e50
commit 89badfb670
1 changed files with 4 additions and 4 deletions

View File

@ -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;