Remove extra find query on update channel

This commit is contained in:
miladkian 2022-06-09 21:48:27 +04:30 committed by GitHub
parent f4d81ec3c4
commit 2e03ac268c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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']);