turf-common 1.2.1-beta.41 → 1.2.1-beta.43

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.
@@ -45,10 +45,10 @@ var SubscriptionModel = /** @class */ (function () {
45
45
  return new SubscriptionModel(demo);
46
46
  };
47
47
  SubscriptionModel.prototype.getFromDate = function () {
48
- return this.from;
48
+ return date_util_1.dateUtilService.convertStringToDate(this.fromDateCode, "yyMMdd");
49
49
  };
50
50
  SubscriptionModel.prototype.getToDate = function () {
51
- return this.to;
51
+ return date_util_1.dateUtilService.convertStringToDate(this.toDateCode, "yyMMdd");
52
52
  };
53
53
  SubscriptionModel.prototype.isRenewalDue = function () {
54
54
  // Check if difference 'to' date and today's date is less than 7 days
@@ -92,7 +92,7 @@ var SubscriptionModel = /** @class */ (function () {
92
92
  // dateService.convertStringToDate(this.from, "yyyy-MM-dd");
93
93
  // const subscribedPitchCount: number = this.noOfPitches;
94
94
  var renewalSubscriptionModel = new subscribed_pricing_plan_model_1.SubscribedPricingPlanModel(currentPricingPlanModel, totalPitchCount, billingCycle);
95
- var toDate = this.to;
95
+ var toDate = this.getToDate();
96
96
  var _a = renewalSubscriptionModel.getNextBillingCycleDateRange(toDate), startDate = _a[0], endDate = _a[1];
97
97
  // const [startDateCode, endDateCode]: [string, string] = [
98
98
  // dateService.getDateCode(startDate),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.2.1-beta.41",
3
+ "version": "1.2.1-beta.43",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",