Skip to content

Commit

Permalink
Fixes a bug in SMF\Tasks\FetchCalendarSubscriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Apr 30, 2024
1 parent 40c90d6 commit fc92e92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Tasks/FetchCalendarSubscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public function execute(): bool

if (!empty($ics_data)) {
switch ($type) {
case 'holiday':
case Event::TYPE_HOLIDAY:
Holiday::import($ics_data);
break;

case 'event':
case Event::TYPE_EVENT:
Event::import($ics_data);
break;
}
Expand Down

0 comments on commit fc92e92

Please sign in to comment.