Quellcode durchsuchen

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

alvesantos vor 1 Woche
Ursprung
Commit
1b04da53fa
1 geänderte Dateien mit 0 neuen und 4 gelöschten Zeilen
  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();
     }