@zgfe/business-lib 1.0.27-adanalysis.1 → 1.0.27-adanalysis.2

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.
@@ -95,10 +95,13 @@ export var getDateRange = function getDateRange(type, count, includeToday) {
95
95
  startDate = moment().subtract(count, 'weeks').format('YYYY-MM-DD');
96
96
  } else if (type === 'day') {
97
97
  startDate = moment().subtract(count, 'days').format('YYYY-MM-DD');
98
+ if (count === 1) endDate = moment().subtract(count, 'days').format('YYYY-MM-DD');
98
99
  } else {
100
+ console.log(1111);
99
101
  startDate = endDate = moment().subtract(count, 'days').format('YYYY-MM-DD');
100
102
  }
101
103
 
104
+ console.log(endDate, includeToday, count);
102
105
  return {
103
106
  begin: startDate,
104
107
  end: endDate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.27-adanalysis.1",
3
+ "version": "1.0.27-adanalysis.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,5 +58,5 @@
58
58
  "react": "^16.12.0 || ^17.0.0",
59
59
  "yorkie": "^2.0.0"
60
60
  },
61
- "gitHead": "e5936560ab172778a9c30c429ca3e0043f466c59"
61
+ "gitHead": "f7a845edfca44ee224b24c03986318fd4618ba5c"
62
62
  }