From aa1a46083663747f8897a450db86385504b7dcc7 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 1 Dec 2024 21:35:13 +1100 Subject: [PATCH] Debug dynamic item, use address in db row --- app/Console/Commands/Debug/DynamicItem.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/Debug/DynamicItem.php b/app/Console/Commands/Debug/DynamicItem.php index aa6f50b..d1cfe86 100644 --- a/app/Console/Commands/Debug/DynamicItem.php +++ b/app/Console/Commands/Debug/DynamicItem.php @@ -12,8 +12,7 @@ use App\Models\Dynamic as DynamicModel; class DynamicItem extends Command { protected $signature = 'debug:dynamic:item' - .' {name : Dynamic Item}' - .' {ftn : FTN Address}'; + .' {name : Dynamic Item}'; protected $description = 'Generate a dynamic item'; @@ -24,9 +23,7 @@ class DynamicItem extends Command if (! $do) throw new \Exception(sprintf('Dynamic Item [%s] doesnt exist?',$this->argument('name'))); - $ao = Address::findFTN($this->argument('ftn')); - - $d = new Dynamic($do,$ao,Send::T_FILE); + $d = new Dynamic($do,$do->address,Send::T_FILE); $d->open(); echo $d->read($d->size);