Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tm-apps-db

Package Overview
Dependencies
Maintainers
5
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-apps-db - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

4

models/article_content.js

@@ -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 @@ }

2

models/article.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc