Update Ricevuta.php

This commit is contained in:
Dasc3er 2020-10-30 15:43:51 +01:00
parent 05445f6fcd
commit c794f01528
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class Ricevuta
$module = $fattura->getModule();
$upload_esistente = $module
->uploads($fattura->id)
->where('original', $filename)
->where('original_name', $filename)
->first();
if (!empty($upload_esistente)) {
return $upload_esistente;