mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Pull the log reference
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0ee2b74ff3
commit
026c80992e
|
@ -8,7 +8,6 @@ use Livewire\Component;
|
|||
use App\Models\Import;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
|
||||
|
||||
|
@ -544,7 +543,6 @@ class Importer extends Component
|
|||
{
|
||||
// TODO: why don't we just do File::find($id)? This seems dumb.
|
||||
foreach($this->files as $file) {
|
||||
Log::debug("File id is: ".$file->id);
|
||||
if ($id == $file->id) {
|
||||
if (Storage::delete('private_uploads/imports/'.$file->file_path)) {
|
||||
$file->delete();
|
||||
|
|
Loading…
Reference in a new issue