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);