@optimiser/common 1.0.257 → 1.0.260
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.
|
@@ -116,7 +116,8 @@ var SyncContactWithOperaOnEmailUnsubscribe = function (db, email) {
|
|
|
116
116
|
GetIntegrationSettings(db, "all").then(function (oiSettings) {
|
|
117
117
|
if (oiSettings && oiSettings.Status == constants_1.default.CompanyAppStatus.ENABLE && oiSettings.HotelList && oiSettings.HotelList.length > 0) {
|
|
118
118
|
if (oiSettings.HotelList.filter(function (x) { return x.Modules && x.Modules.length > 0 && x.Modules.find(function (y) { return y.ModuleName && y.ModuleName == "contact"; }); }).length > 0)
|
|
119
|
-
db.collection("Contact").updateOne({ "_id": resultContact._id, "IsActive": true }, { $set: { "OperaStatus":
|
|
119
|
+
// db.collection("Contact").updateOne({ "_id": resultContact._id, "IsActive": true }, { $set: { "OperaStatus": constants.OperaSyncStatus.READY } });
|
|
120
|
+
db.collection("Contact").updateOne({ "_id": resultContact._id, "IsActive": true }, { $set: { "EmailSubscriptionFromOptimiserToOpera": (new Date()).getMilliseconds() } });
|
|
120
121
|
}
|
|
121
122
|
}, function (erroOiSettings) {
|
|
122
123
|
if (erroOiSettings.name)
|
package/dist/lib/utility.js
CHANGED
|
@@ -257,8 +257,8 @@ function GetPageFieldData(pageName, db, mdb, msp_d, next, callback) {
|
|
|
257
257
|
ExtraLookupFields: [
|
|
258
258
|
"UserStatus",
|
|
259
259
|
"IsAppUser"
|
|
260
|
-
]
|
|
261
|
-
OnLinkRender: "if(lookupRecord.IsAppUser==true){isHyperlink=false;}"
|
|
260
|
+
]
|
|
261
|
+
/*,OnLinkRender: "if(lookupRecord.IsAppUser==true){isHyperlink=false;}"*/
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
264
|
createdDateObj = {
|
|
@@ -296,8 +296,8 @@ function GetPageFieldData(pageName, db, mdb, msp_d, next, callback) {
|
|
|
296
296
|
ExtraLookupFields: [
|
|
297
297
|
"UserStatus",
|
|
298
298
|
"IsAppUser"
|
|
299
|
-
]
|
|
300
|
-
OnLinkRender: "if(lookupRecord.IsAppUser==true){isHyperlink=false;}"
|
|
299
|
+
]
|
|
300
|
+
/*,OnLinkRender: "if(lookupRecord.IsAppUser==true){isHyperlink=false;}"*/
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
modDateObj = {
|
|
@@ -3469,9 +3469,12 @@ function SyncUserLicenceConsumedCount(msp_d, db, dbMaster) {
|
|
|
3469
3469
|
companyLicencesData_1 = (companySetting.Setting.Licences) ? companySetting.Setting.Licences : {};
|
|
3470
3470
|
if (isEmptyObj(companyLicencesData_1) == false) {
|
|
3471
3471
|
for (i in companyLicencesData_1) {
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
companyLicenceType
|
|
3472
|
+
/*Added by Chetan on 07-Mar-2022, Not necessary for Domain Licence*/
|
|
3473
|
+
if (i != "Domain") {
|
|
3474
|
+
companyLicenceType = companyLicencesData_1[i];
|
|
3475
|
+
for (j in companyLicenceType) {
|
|
3476
|
+
companyLicenceType[j].NoOfLicenceConsumed = 0;
|
|
3477
|
+
}
|
|
3475
3478
|
}
|
|
3476
3479
|
}
|
|
3477
3480
|
db.collection('UserLicence').aggregate([
|