agrs-sequelize-sdk 1.1.22 → 1.1.23
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.
|
@@ -146,19 +146,15 @@ module.exports = (sequelize, DataTypes) => {
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
CodefuelCampaign.
|
|
150
|
-
console.log("beforeCreate", campaign);
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
CodefuelCampaign.addHook("beforeUpdate", async (campaign, options) => {
|
|
149
|
+
CodefuelCampaign.beforeUpdate(async (campaign, options) => {
|
|
154
150
|
console.log("beforeUpdate", campaign);
|
|
155
151
|
});
|
|
156
152
|
|
|
157
|
-
CodefuelCampaign.
|
|
153
|
+
CodefuelCampaign.afterUpdate(async (campaign, options) => {
|
|
158
154
|
console.log("afterUpdate", campaign);
|
|
159
155
|
});
|
|
160
156
|
|
|
161
|
-
CodefuelCampaign.
|
|
157
|
+
CodefuelCampaign.afterCreate(async (campaign, options) => {
|
|
162
158
|
console.log("afterCreate", campaign);
|
|
163
159
|
});
|
|
164
160
|
|