tm-apps-db
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -27,6 +27,2 @@ "use strict"; | ||
//article_content.belongsTo(models.article_relation, { | ||
// constraints: false | ||
//}); | ||
article_content.belongsTo(models.html, { | ||
@@ -33,0 +29,0 @@ constraints: false |
@@ -24,3 +24,2 @@ "use strict"; | ||
article_relation.belongsTo(models.image, {constraints: false}); | ||
//article_relation.hasMany(models.article_content, {constraints: false}); | ||
} | ||
@@ -27,0 +26,0 @@ } |
@@ -107,3 +107,3 @@ "use strict"; | ||
findOrCreateThenSetTags: function (data, options) { | ||
const promises = R.map(tag => sequelize.models.tag.findOrCreate({where: { id: tag.id }, defaults: R.omit(['id'], tag)}).spread((a, b) => a), data); | ||
const promises = R.map(tag => sequelize.models.tag.findOrCreate(R.merge(options, {where: { id: tag.id }, defaults: R.omit(['id'], tag)})).spread((a, b) => a), data); | ||
return sequelize.Sequelize.Promise.all(promises).then(tags => this.setTags(tags, options)); | ||
@@ -110,0 +110,0 @@ } |
{ | ||
"name": "tm-apps-db", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Apps consumer database initialiser", | ||
@@ -5,0 +5,0 @@ "main": "index.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
24229
631