Fix TicProcess, save() returns a bool, not the object
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m45s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-05-25 11:08:33 +10:00
parent 3555e5a91c
commit 391e9e1e39

View File

@ -63,8 +63,7 @@ class TicProcess implements ShouldQueue
$to = new Tic; $to = new Tic;
try { try {
$fo = $to->load($this->file) $fo = $to->load($this->file);
->save();
} catch (\Exception $e) { } catch (\Exception $e) {
Log::error(sprintf('%s:! Error loading TIC file [%s] (%s)',self::LOGKEY,$rel_name,$e->getMessage())); Log::error(sprintf('%s:! Error loading TIC file [%s] (%s)',self::LOGKEY,$rel_name,$e->getMessage()));
@ -72,6 +71,8 @@ class TicProcess implements ShouldQueue
return; return;
} }
$fo->save();
Log::info(sprintf('%s:= Processed [%s] storing [%s] as id [%d]',self::LOGKEY,$this->file,$to->file->name,$to->file->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')) { if (config('fido.packet_keep')) {
@ -99,6 +100,6 @@ class TicProcess implements ShouldQueue
} }
if ($to->isNodelist()) if ($to->isNodelist())
NodelistImport::dispatch($fo,$this->domain); NodelistImport::dispatch($fo->withoutRelations(),$this->domain);
} }
} }