@optimiser/common 1.0.259 → 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": constants_1.default.OperaSyncStatus.READY } });
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.259",
3
+ "version": "1.0.260",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {