record daily traffic instead of monthly

This commit is contained in:
Čarodej
2021-11-30 17:57:00 +01:00
parent ca257ae113
commit de047f7dd8
19 changed files with 69 additions and 86 deletions

View File

@@ -12,7 +12,7 @@ class RecordDownloadAction
int $file_size,
string $user_id,
): void {
$record = Traffic::currentMonth()
$record = Traffic::currentDay()
->firstOrCreate([
'user_id' => $user_id,
]);