fix: [serverShell:sendPeriodicSummaryToUsers] Typo in periods

pull/8579/head
Sami Mokaddem 2022-09-12 15:04:29 +02:00
parent bb968c57df
commit 6f4564e900
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -596,10 +596,10 @@ class ServerShell extends AppShell
$today = new DateTime();
$periods = ['daily'];
if ($today->format('j') == 1) {
$periods[] = 'weekly';
$periods[] = 'monthly';
}
if ($today->format('N') == 1) {
$periods[] = 'monthly';
$periods[] = 'weekly';
}
return $periods;
}