awing-library 2.1.63 → 2.1.64
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.
|
@@ -315,7 +315,7 @@ function dataGroupByTimeline(place, data, timelineType) {
|
|
|
315
315
|
if (d.isSPot) {
|
|
316
316
|
return sum + Number((d[Enum_1.BaseEvent[Enum_2.AnalyticType.AUTHENTICATION]] + d[Enum_1.BaseEvent[Enum_2.AnalyticType.CLICK]]) || 0);
|
|
317
317
|
}
|
|
318
|
-
return sum + Number(d[Enum_1.BaseEvent[Enum_2.AnalyticType.
|
|
318
|
+
return sum + Number(d[Enum_1.BaseEvent[Enum_2.AnalyticType.CLICK]] || 0);
|
|
319
319
|
}, 0);
|
|
320
320
|
var arr = [place, dateString, impression];
|
|
321
321
|
if (hasSpot) {
|
|
@@ -332,7 +332,7 @@ function dataGroupByTimeline(place, data, timelineType) {
|
|
|
332
332
|
if (d.isSPot) {
|
|
333
333
|
return sum + d[Enum_1.BaseEvent[Enum_2.AnalyticType.AUTHENTICATION]] + d[Enum_1.BaseEvent[Enum_2.AnalyticType.CLICK]];
|
|
334
334
|
}
|
|
335
|
-
return sum + d[Enum_1.BaseEvent[Enum_2.AnalyticType.
|
|
335
|
+
return sum + d[Enum_1.BaseEvent[Enum_2.AnalyticType.CLICK]];
|
|
336
336
|
}, 0);
|
|
337
337
|
var totalArr = [place, i18n_1.default.t('Schedule.Total'), impr];
|
|
338
338
|
if (hasSpot) {
|
package/lib/Utils/Helpers.js
CHANGED
|
@@ -571,8 +571,8 @@ function fillMissingDates(data, startDate, endDate, format) {
|
|
|
571
571
|
if (format === void 0) { format = 'YYYYMMDD'; }
|
|
572
572
|
var result = data.concat();
|
|
573
573
|
// Parse the start and end dates
|
|
574
|
-
var start = (0, moment_1.default)(isNaN(Number(startDate)) ? startDate : String(startDate));
|
|
575
|
-
var end = (0, moment_1.default)(isNaN(Number(endDate)) ? endDate : String(endDate));
|
|
574
|
+
var start = (0, moment_1.default)(isNaN(Number(startDate)) ? startDate : String(startDate)).startOf('day');
|
|
575
|
+
var end = (0, moment_1.default)(isNaN(Number(endDate)) ? endDate : String(endDate)).endOf('day');
|
|
576
576
|
if (start.isAfter(end))
|
|
577
577
|
throw new Error('Start date must be before end date');
|
|
578
578
|
// Array to hold the complete range of dates
|