@optimiser/common 1.0.347 → 1.0.349
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/connection.js +1 -1
- package/dist/lib/helper.js +9 -5
- package/package.json +2 -2
package/dist/lib/connection.js
CHANGED
|
@@ -435,7 +435,7 @@ var Connection = /** @class */ (function () {
|
|
|
435
435
|
if (!user) {
|
|
436
436
|
return _this.ReturnJsonResponse(req, res, {
|
|
437
437
|
Data: {},
|
|
438
|
-
Message: "
|
|
438
|
+
Message: "Your previous session has expired. Please log in.",
|
|
439
439
|
Status: 401,
|
|
440
440
|
Type: "ERROR",
|
|
441
441
|
OriginalStatus: 401
|
package/dist/lib/helper.js
CHANGED
|
@@ -105,13 +105,17 @@ function GetEmailwiseUnsubscribeData(db, mailID, domainID) {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
var _loop_1 = function (i) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
compaignObj = listSchema_1[i];
|
|
109
|
+
if (compaignObj.HideForUser != true) {
|
|
110
|
+
if (lstData != null && lstData.CampaignUnsubsCategory && lstData.CampaignUnsubsCategory.length > 0 && lstData.CampaignUnsubsCategory.filter(function (p) { return p == listSchema_1[i].Key; }).length > 0) {
|
|
111
|
+
obj.push({ 'Key': compaignObj.Key, 'Value': compaignObj.Value, 'DomainID': compaignObj.DomainID, 'checked': true });
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
obj.push({ 'Key': compaignObj.Key, 'Value': compaignObj.Value, 'DomainID': compaignObj.DomainID, 'checked': false });
|
|
115
|
+
}
|
|
113
116
|
}
|
|
114
117
|
};
|
|
118
|
+
var compaignObj;
|
|
115
119
|
for (var i = 0; i < listSchema_1.length; i++) {
|
|
116
120
|
_loop_1(i);
|
|
117
121
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optimiser/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.349",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,6 +51,6 @@
|
|
|
51
51
|
"@types/moment-timezone": "^0.5.30",
|
|
52
52
|
"@types/mongodb": "^3.5.27",
|
|
53
53
|
"@types/nodemailer": "^6.4.0",
|
|
54
|
-
"typescript": "^3.
|
|
54
|
+
"typescript": "^3.9.10"
|
|
55
55
|
}
|
|
56
56
|
}
|