@things-factory/dataset 6.0.86 → 6.0.88

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/dataset",
3
- "version": "6.0.86",
3
+ "version": "6.0.88",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -50,5 +50,5 @@
50
50
  "simple-statistics": "^7.8.3",
51
51
  "statistics": "^3.3.0"
52
52
  },
53
- "gitHead": "b6e098a058696832178dd425ec0893ca4c313b33"
53
+ "gitHead": "e67893ab1b97c768227998452059d9005dcd82fc"
54
54
  }
@@ -71,11 +71,6 @@ export async function queryDataSummaryByPeriod(
71
71
  throw new Error(`dataSet not found by the given dataSetName(${dataSetName})`)
72
72
  }
73
73
 
74
- // 주어진 기간에 따라서, date의 범위를 구한다.
75
- // day : 시간별 서머리를 제공한다. 'today'
76
- // month : 일별 서머리를 제공한다. 'this month', '30 days'
77
- // year : 월별 서머리를 제공한다. 'this year', '12 months'
78
-
79
74
  // limitations
80
75
  const summaryPeriodType = dataSet.summaryPeriod
81
76
  if (
@@ -143,7 +138,7 @@ export async function queryDataSummaryByPeriod(
143
138
  period == 'today'
144
139
  ? 'summary.date, summary.period'
145
140
  : ['this year', '12 months'].includes(period)
146
- ? 'month'
141
+ ? 'month, summary.date'
147
142
  : 'summary.date'
148
143
  const groupByKeys = dataKeyItems
149
144
  .map((item, index) => {