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

This commit is contained in:
Kyrch authored and GitHub committed 2025-05-24 07:02:50 -03:00
1 parent 682e02895c
commit c4385cf6d9
2 files changed
+5 -1

No files matched your search

+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])