agrs-sequelize-sdk 1.1.68 → 1.1.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/models/Ad.js +3 -5
  2. package/package.json +1 -1
package/models/Ad.js CHANGED
@@ -223,11 +223,9 @@ module.exports = (sequelize, DataTypes) => {
223
223
  }
224
224
 
225
225
  // Try fetching related RSOCFeedCampaign
226
- const rsocFeedCampaign = await sequelize.models.rsoc_feed_campaigns.findOne(
227
- {
228
- where: { AGRS_CID: this.AGRS_CID },
229
- }
230
- );
226
+ const rsocFeedCampaign = await sequelize.models.RSOCFeedCampaign.findOne({
227
+ where: { AGRS_CID: this.AGRS_CID },
228
+ });
231
229
 
232
230
  if (rsocFeedCampaign) {
233
231
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.1.68",
3
+ "version": "1.1.70",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",