Rework TIC processing and added test cases
This commit is contained in:
@@ -61,15 +61,18 @@ class TicProcess implements ShouldQueue
|
||||
$rel_name = sprintf('%s/%s',config('fido.dir'),$this->file);
|
||||
|
||||
$to = new Tic;
|
||||
|
||||
try {
|
||||
$to->load($rel_name);
|
||||
$fo = $to->load($this->file)
|
||||
->save();
|
||||
|
||||
} catch (\Exception $e) {
|
||||
Log::error(sprintf('%s:! Error loading TIC file [%s] (%s)',self::LOGKEY,$rel_name,$e->getMessage()));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Log::info(sprintf('%s:= Processed [%s] storing [%s] as id [%d]',self::LOGKEY,$this->file,$to->fo->name,$to->fo->id));
|
||||
Log::info(sprintf('%s:= Processed [%s] storing [%s] as id [%d]',self::LOGKEY,$this->file,$to->file->name,$to->file->id));
|
||||
|
||||
if (config('fido.packet_keep')) {
|
||||
$dir = sprintf('%s/%s',config('fido.dir'),Carbon::now()->format('Ymd'));
|
||||
|
Reference in New Issue
Block a user