Sfoglia il codice sorgente

refactor(contracts): remove automatic status update for signed files in attachFile method

alvesantos 1 settimana fa
parent
commit
1b04da53fa
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      app/Services/StudentContractService.php

+ 0 - 4
app/Services/StudentContractService.php

@@ -280,10 +280,6 @@ public function attachFile(int $id, UploadedFile $file, bool $signed = false): ?
             $typeAttribute => $file->getMimeType(),
         ]);
 
-        if ($signed && $model->status === 'pending') {
-            $model->update(['status' => 'active']);
-        }
-
         return $model->fresh();
     }