Comparing version 1.3.0-171 to 1.3.0-173
@@ -6,2 +6,3 @@ #fh-forms | ||
* RHMAP-2394 - Changed fh-forms to include Data Source cache update. | ||
* RHMAP-3242 - Fixed Deploying A Form Containing A Data Source Not Associating Correctly. | ||
@@ -8,0 +9,0 @@ ## 1.2.0 - 2015-09-28 - Niall Donnelly |
@@ -12,2 +12,3 @@ var async = require('async'); | ||
var ERROR_CODES = models.CONSTANTS.ERROR_CODES; | ||
var logger = require('../common/logger.js').getLogger(); | ||
@@ -35,2 +36,3 @@ /* | ||
module.exports = function updateForm(connections, options, formToUpdate, cb) { | ||
logger.debug("Updating Form", options, formToUpdate); | ||
formToUpdate = formToUpdate || {}; | ||
@@ -197,2 +199,4 @@ var formData = _.clone(formToUpdate); | ||
logger.debug("Got Form Data Sources", dataSources); | ||
//Only Want One Of Each Data Source | ||
@@ -716,3 +720,13 @@ return _.uniq(dataSources); | ||
formData._id = formData._id || new mongoose.Types.ObjectId(); | ||
return cb(undefined, createNewForm(formData)); | ||
logger.debug("Deploying Form", formData); | ||
var newForm = createNewForm(formData); | ||
newForm.dataSources = { | ||
formDataSources: dataSourcesAndTargets.dataSources | ||
}; | ||
newForm.dataTargets = dataSourcesAndTargets.dataTargets; | ||
return cb(undefined, newForm); | ||
} | ||
@@ -719,0 +733,0 @@ |
{ | ||
"name": "fh-forms", | ||
"version": "1.3.0-171", | ||
"version": "1.3.0-173", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "archiver": { |
{ | ||
"name": "fh-forms", | ||
"version": "1.3.0-171", | ||
"version": "1.3.0-173", | ||
"description": "Cloud Forms API for form submission", | ||
@@ -5,0 +5,0 @@ "main": "fhforms.js", |
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
561059
13216