Comparing version 0.4.16 to 0.4.17
@@ -977,2 +977,3 @@ var _ = require('underscore'); | ||
buildGroup: function (groupName, timestamp, callback) { | ||
var self = this; | ||
@@ -984,11 +985,12 @@ self.getGroup(groupName, function (err, pages) { | ||
async.forEach(groups, function (page, callback) { | ||
var parsed = Page.parsePageVersion(page); | ||
async.forEach(pages, function (p, callback) { | ||
var parsed = Page.parsePageVersion(p); | ||
if (!parsed.name || !parsed.version) { | ||
var msg = util.format('Page "%s" is not valid', page); | ||
var msg = util.format('Page "%s" is not valid', p); | ||
callback(new Error(msg)); | ||
} | ||
var page = app.getPage(parsed.name, parsed.version); | ||
var page = self.getPage(parsed.name, parsed.version); | ||
@@ -995,0 +997,0 @@ page.build(timestamp, callback); |
@@ -5,3 +5,3 @@ { | ||
"description": "build front project", | ||
"version": "0.4.16", | ||
"version": "0.4.17", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
1569228
39261