|
@@ -81,7 +81,7 @@ class Downloads extends Command
|
|
|
$filePath = $fileDir .$download->username.$fileName;
|
|
|
try {
|
|
|
$this->postRepository->download($filePath, $download->download_type, json_decode($download->params, true));
|
|
|
- Storage::put(public_path($filePath), file_get_contents(public_path($filePath)));
|
|
|
+ Storage::put($filePath, file_get_contents(public_path($filePath)));
|
|
|
$download->url = $filePath;
|
|
|
$download->download_status = 2;
|
|
|
$download->save();
|