mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix: fixed if statement in encode updated event (#821)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user