Skip to content

Commit

Permalink
Enable channel if default on record creation (#1923)
Browse files Browse the repository at this point in the history
Brings channels in line with #1922
  • Loading branch information
alecritson authored Aug 28, 2024
1 parent 9dc1a7b commit f8255ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Base/Traits/HasChannels.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public static function bootHasChannels()
$channels = Channel::get()->mapWithKeys(function ($channel) {
return [
$channel->id => [
'enabled' => false,
'starts_at' => null,
'enabled' => $channel->default,
'starts_at' => $channel->default ? now() : null,
'ends_at' => null,
],
];
Expand Down

0 comments on commit f8255ea

Please sign in to comment.