mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-11-14 01:58:49 +01:00
fix: fixed if statement in encode updated event (#821)
This commit is contained in:
1 parent
682e02895c
commit
c4385cf6d9
2 files changed
+5
-1
No files matched your search
@@ -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