Fix upload to SoundCloud button remaining disabled after upload failure
This commit is contained in:
parent
9bce3e6850
commit
d48e594dcd
2 changed files with 7 additions and 2 deletions
|
@ -96,7 +96,12 @@ abstract class ThirdPartyService {
|
|||
$ref = ThirdPartyTrackReferencesQuery::create()
|
||||
->filterByDbService(static::$_SERVICE_NAME)
|
||||
->findOneByDbFileId($fileId); // There shouldn't be duplicates!
|
||||
return !empty($ref);
|
||||
if (!empty($ref)) {
|
||||
$task = CeleryTasksQuery::create()
|
||||
->findOneByDbTrackReference($ref->getDbId());
|
||||
return $task->getDbStatus() != CELERY_FAILED_STATUS;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue