Fix condition in Media::save which made videos stay in processing status for infinite amount of time

This commit is contained in:
Celestora 2022-04-12 22:12:15 +03:00
parent fb141e259b
commit 26cb287b67

View file

@ -123,7 +123,7 @@ abstract class Media extends Postable
function save(): void
{
if(!is_null($this->processingPlaceholder)) {
if(!is_null($this->processingPlaceholder) && is_null($this->getRecord())) {
$this->stateChanges("processed", 0);
$this->stateChanges("last_checked", time());
}