Skip to content

Commit 46c2c8b

Browse files
committed
Stats fix
1 parent 4c3d2a4 commit 46c2c8b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ access.log
1212
access_big.log
1313
access_short.log
1414
sync-db.sh
15-
app/tempest-access.log
15+
sync-log.sh
16+
tempest-access.log
1617
vite-tempest
1718
public/build/
1819
database.sqlite

src/Web/Analytics/PackageDownloadsPerDay/PackageDownloadsPerDayProjector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function onPackageDownloadsListed(PackageDownloadsListed $event): void
3737

3838
PackageDownloadsPerDay::updateOrCreate(
3939
[
40-
'date' => $event->date->format(DATE_ATOM),
40+
'date' => $event->date,
4141
'package' => $event->package,
4242
],
4343
[

src/Web/Analytics/VisitsPerDay/VisitsPerDayProjector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function onPageVisited(PageVisited $pageVisited): void
3434
$visitedAt = $pageVisited->visitedAt->setTime(0, 0);
3535

3636
$day = VisitsPerDay::query()
37-
->whereField('date', $visitedAt->format(DATE_ATOM))
37+
->whereField('date', $visitedAt)
3838
->first();
3939

4040
if (! $day) {

0 commit comments

Comments
 (0)