@optimiser/common 1.0.350 → 1.0.351
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.
- package/dist/lib/helper.js +5 -7
- package/package.json +1 -1
package/dist/lib/helper.js
CHANGED
|
@@ -106,13 +106,11 @@ function GetEmailwiseUnsubscribeData(db, mailID, domainID) {
|
|
|
106
106
|
}
|
|
107
107
|
var _loop_1 = function (i) {
|
|
108
108
|
compaignObj = listSchema_1[i];
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
obj.push({ 'Key': compaignObj.Key, 'Value': compaignObj.Value, 'DomainID': compaignObj.DomainID, 'checked': false });
|
|
115
|
-
}
|
|
109
|
+
if (lstData != null && lstData.CampaignUnsubsCategory && lstData.CampaignUnsubsCategory.length > 0 && lstData.CampaignUnsubsCategory.filter(function (p) { return p == listSchema_1[i].Key; }).length > 0) {
|
|
110
|
+
obj.push({ 'Key': compaignObj.Key, 'Value': compaignObj.Value, 'DomainID': compaignObj.DomainID, 'checked': true, 'HideForUser': compaignObj.HideForUser });
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
obj.push({ 'Key': compaignObj.Key, 'Value': compaignObj.Value, 'DomainID': compaignObj.DomainID, 'checked': false, 'HideForUser': compaignObj.HideForUser });
|
|
116
114
|
}
|
|
117
115
|
};
|
|
118
116
|
var compaignObj;
|