tm-apps-db
Advanced tools
Comparing version 3.2.20-factbox to 3.2.20-factbox2
@@ -6,3 +6,3 @@ "use strict"; | ||
module.exports = function(sequelize, DataTypes) { | ||
const image = sequelize.define('factbox', { | ||
const factbox = sequelize.define('factbox', { | ||
id: { | ||
@@ -57,9 +57,9 @@ type: DataTypes.STRING, | ||
associate: function (models) { | ||
image.belongsToMany(models.section, {through: 'sections_relations', constraints: false}); | ||
image.belongsTo(models.section, {constraints: false, as: 'home_section'}); | ||
image.hasOne(models.content_item, {constraints: false}); | ||
factbox.belongsToMany(models.section, {through: 'sections_relations', constraints: false}); | ||
factbox.belongsTo(models.section, {constraints: false, as: 'home_section'}); | ||
factbox.hasOne(models.content_item, {constraints: false}); | ||
} | ||
} | ||
}); | ||
return image; | ||
return factbox; | ||
}; |
{ | ||
"name": "tm-apps-db", | ||
"version": "3.2.20-factbox", | ||
"version": "3.2.20-factbox2", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
724863
0