Enable moving inbound files to s3 and logging in DB
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user