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

@giftwizard/db-models

Package Overview
Dependencies
Maintainers
8
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giftwizard/db-models - npm Package Compare versions

Comparing version 9.0.3 to 9.0.4

models/Bulk.js

34

models/bulk-campaign.js

@@ -10,18 +10,18 @@ module.exports = (sequelizeConnection, DataTypes) => {

autoIncrement: true,
field: 'id'
field: 'id',
},
shop_url: {
type: DataTypes.STRING
type: DataTypes.STRING,
},
campaign_id: {
type: DataTypes.STRING
type: DataTypes.STRING,
},
campaign_title: {
type: DataTypes.STRING
type: DataTypes.STRING,
},
gift_card_count: {
type: DataTypes.INTEGER
type: DataTypes.INTEGER,
},
source: {
type: DataTypes.STRING
type: DataTypes.STRING,
},

@@ -42,12 +42,12 @@ manual_src_data: {

}
}
},
},
csv_src_link: {
type: DataTypes.TEXT
type: DataTypes.TEXT,
},
status: {
type: DataTypes.STRING
type: DataTypes.STRING,
},
created_at: {
type: DataTypes.DATE
type: DataTypes.DATE,
},

@@ -68,7 +68,7 @@ event_src_data: {

}
}
},
},
migration: {
type: DataTypes.BOOLEAN
}
type: DataTypes.BOOLEAN,
},
},

@@ -79,9 +79,9 @@ {

underscored: true,
timestamps: false
}
timestamps: false,
},
);
BulkCampaign.countTasks = async function() {
BulkCampaign.countTasks = async function () {
return await sequelizeConnection.models.BulkCampaignCompleteTasks.count({
where: { shop_url: this.shop_url, campaign_id: this.campaign_id }
where: { shop_url: this.shop_url, campaign_id: this.campaign_id },
});

@@ -88,0 +88,0 @@ };

{
"name": "@giftwizard/db-models",
"version": "9.0.3",
"version": "9.0.4",
"description": "Rise.ai package for 'sequelize' models used by several projects.",

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