Handle fortnightly digests, empty digests

This commit is contained in:
Ben Goldsworthy 2022-11-10 02:15:42 +00:00
parent 77aaf4748f
commit 6eaaff513c
2 changed files with 25 additions and 18 deletions

View file

@ -55,6 +55,9 @@ class Digest extends Mailable
case 'weekly':
$cutoffDateTime->modify('-1 week');
break;
case 'fortnightly':
$cutoffDateTime->modify('-2 weeks');
break;
case 'monthly':
$cutoffDateTime->modify('-1 month');
break;

View file

@ -37,6 +37,7 @@
<p>View the tracker <a href="https://track.bengoldsworthy.net">here.</a></p>
<hr>
<h2>Checkins</h2>
@if($checkins)
<ol>
@foreach($checkins as $checkin)
<li>
@ -55,3 +56,6 @@
</li>
@endforeach
</ol>
@else
<p>No new checkins</p>
@endif