Remove extra find query on update channel
This commit is contained in:
parent
f4d81ec3c4
commit
2e03ac268c
|
|
@ -70,8 +70,6 @@ class ChannelRepository extends Repository
|
|||
{
|
||||
Event::dispatch('core.channel.update.before', $id);
|
||||
|
||||
$channel = $this->find($id);
|
||||
|
||||
$channel = parent::update($data, $id, $attribute);
|
||||
|
||||
$channel->locales()->sync($data['locales']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue