@lightdash/common 0.1407.1 → 0.1407.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.
@@ -146,7 +146,7 @@ const getMetricExplorerDataPointsWithCompare = (dimension, compareDimension, met
146
146
  const groupByCompareMetricRows = (0, lodash_1.groupBy)(compareMetricRows, (row) => new Date(String(row[compareDimensionId].value.raw)).toISOString());
147
147
  const offsetGroupByCompareMetricRows = (0, lodash_1.mapKeys)(groupByCompareMetricRows, (_, date) => comparison.type === metricsExplorer_1.MetricExplorerComparison.PREVIOUS_PERIOD
148
148
  ? (0, exports.getDateCalcUtils)(timeFrames_1.TimeFrames.YEAR)
149
- .back(new Date(date))
149
+ .forward(new Date(date))
150
150
  .toISOString()
151
151
  : date);
152
152
  const dates = new Set([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1407.1",
3
+ "version": "0.1407.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [