Download : Fix bug in update methd

This commit is contained in:
alphayax 2016-09-18 14:39:25 +02:00
parent 7d53da1aaf
commit 550a5f864a
1 changed files with 1 additions and 2 deletions

View File

@ -87,8 +87,7 @@ class Download extends ServiceAuth {
* @return models\Download\Task
*/
public function update( models\Download\Task $downloadTask){
$eraseService = sprintf( self::API_DOWNLOAD_ERASE, $downloadTask->getId());
$rest = $this->getService( $eraseService);
$rest = $this->getService( self::API_DOWNLOAD . $downloadTask->getId());
$rest->PUT( $downloadTask);
return $rest->getResult( models\Download\Task::class);