Enable moving inbound files to s3 and logging in DB

This commit is contained in:
Deon George
2022-11-02 21:20:02 +11:00
parent 029a8a9d73
commit 7571a2cd7d
7 changed files with 764 additions and 26 deletions

View File

@@ -9,6 +9,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Log;
use App\Classes\FTN\Tic;
@@ -35,6 +36,10 @@ class TicProcess implements ShouldQueue
*/
public function handle()
{
new Tic($this->file);
$to = new Tic($this->file);
Log::info(sprintf('%s:Processed [%s] storing [%s] as id [%d]',self::LOGKEY,$this->file,$to->fo->file,$to->fo->id));
unlink($to->fullpath($this->file));
}
}