Fix upload to SoundCloud button remaining disabled after upload failure

This commit is contained in:
Duncan Sommerville 2015-06-23 19:02:28 -04:00
parent 9bce3e6850
commit d48e594dcd
2 changed files with 7 additions and 2 deletions

View file

@ -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();
}