@optimiser/common 1.0.437 → 1.0.438

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.
@@ -4482,7 +4482,7 @@ function NextServiceDateForDashboard(options) {
4482
4482
  if (Frequency === "daily") {
4483
4483
  date = moment_1.default.tz(time, formattedTimeStr, Timezone); //.format();
4484
4484
  if (!CheckDateNotInPast(currentUtcTime, date)) {
4485
- date = moment_1.default.tz(time, formattedTimeStr, Timezone).add(1, "d"); // add 1 month
4485
+ date = options.NextServiceDate ? (0, moment_1.default)(options.NextServiceDate).add(1, "d") : moment_1.default.tz(time, formattedTimeStr, Timezone).add(1, "d"); // add 1 day
4486
4486
  }
4487
4487
  }
4488
4488
  else if (Frequency === "weekly") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.437",
3
+ "version": "1.0.438",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {