Comparing version 0.5.11 to 0.5.12
@@ -181,3 +181,2 @@ var async = require('async'); | ||
toDelete = _.difference(inDB,toUpdate); | ||
cb(undefined, form, toDelete, toAdd, toUpdate, idSorted); | ||
@@ -209,3 +208,3 @@ | ||
function createPages(form, toAdd, toUpdate, idSorted, cb){ | ||
async.each(toAdd, function createPage (item, callback){ | ||
async.eachSeries(toAdd, function createPage (item, callback){ | ||
var localItem = JSON.parse(JSON.stringify(item)); | ||
@@ -215,3 +214,2 @@ updateCreateFields(localItem.fields, function (err, fieldIds) { | ||
localItem.fields = fieldIds; // replace field objects with field ids | ||
var f = new pageModel(localItem); | ||
@@ -306,5 +304,4 @@ f.save(function (err, ok){ | ||
form.markModified("lastUpdated"); | ||
form.save(cb); | ||
}); | ||
}; |
{ | ||
"name": "fh-forms", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "Cloud Forms API for form submission", | ||
@@ -5,0 +5,0 @@ "main": "lib/forms.js", |
@@ -1,1 +0,1 @@ | ||
0.5.11-44 | ||
0.5.12-46 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
279708