@giftwizard/db-models
Advanced tools
Comparing version 9.0.3 to 9.0.4
@@ -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", |
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
87948
46
3301