fix: fixed if statement in encode updated event (#821)

This commit is contained in:
Kyrch
2025-05-24 07:02:50 -03:00
committed by GitHub
parent 682e02895c
commit c4385cf6d9
2 changed files with 5 additions and 1 deletions
@@ -5,7 +5,9 @@ declare(strict_types=1);
namespace App\Actions\Storage\Admin\Dump;
use App\Concerns\Repositories\Admin\ReconcilesDumpRepositories;
use App\Models\Aggregate\LikeAggregate;
use App\Models\User\Encode;
use App\Models\User\Like;
use App\Models\User\Notification;
use App\Models\User\Report;
use App\Models\User\Report\ReportStep;
@@ -31,6 +33,8 @@ class DumpUserAction extends DumpAction
{
return [
Encode::TABLE,
Like::TABLE,
LikeAggregate::TABLE,
Notification::TABLE,
Report::TABLE,
ReportStep::TABLE,
+1 -1
View File
@@ -53,7 +53,7 @@ class EncodeUpdated extends BaseEvent implements ManagesTrackEvent
{
if (
$this->getModel()->wasChanged(Encode::ATTRIBUTE_TYPE) &&
$this->getModel()->getAttribute(Encode::ATTRIBUTE_TYPE) === EncodeType::OLD->value
$this->getModel()->getAttribute(Encode::ATTRIBUTE_TYPE) === EncodeType::OLD
) {
$track = PlaylistTrack::query()
->with([PlaylistTrack::RELATION_PLAYLIST, PlaylistTrack::RELATION_VIDEO])