Skip to content

Commit 68cf956

Browse files
committed
chore(): remove log var
1 parent b40bdff commit 68cf956

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/models/eventsFactory.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,11 @@ class EventsFactory extends Factory {
424424

425425
let dailyEventsCursor = await this.getCollection(this.TYPES.DAILY_EVENTS)
426426
.find(options, { projection: { lastRepetitionTime: 1, groupingTimestamp: 1, count: 1 } })
427-
.batchSize(100000);
427+
.batchSize(80_000);
428428

429429
const groupedCounts = {};
430-
let currentCount = 1;
431430

432431
for await (const item of dailyEventsCursor) {
433-
currentCount++;
434432
const groupingTimestamp = getMidnightWithTimezoneOffset(
435433
item.lastRepetitionTime,
436434
item.groupingTimestamp,

0 commit comments

Comments
 (0)