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
|
@ -83,7 +83,7 @@ abstract class ThirdPartyCeleryService extends ThirdPartyService {
|
|||
protected function _createTaskReference($fileId, $brokerTaskId, $taskName) {
|
||||
$trackId = $this->createTrackReference($fileId);
|
||||
// First, check if the track already has an entry in the database
|
||||
$task = CeleryTasksQuery::create()->findOneByDbId($brokerTaskId);
|
||||
$task = CeleryTasksQuery::create()->findOneByDbTrackReference($trackId);
|
||||
if (is_null($task)) {
|
||||
$task = new CeleryTasks();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue