Debug dynamic item, use address in db row
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 1m34s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-12-01 21:35:13 +11:00
parent 6743e5bf73
commit aa1a460836

View File

@ -12,8 +12,7 @@ use App\Models\Dynamic as DynamicModel;
class DynamicItem extends Command class DynamicItem extends Command
{ {
protected $signature = 'debug:dynamic:item' protected $signature = 'debug:dynamic:item'
.' {name : Dynamic Item}' .' {name : Dynamic Item}';
.' {ftn : FTN Address}';
protected $description = 'Generate a dynamic item'; protected $description = 'Generate a dynamic item';
@ -24,9 +23,7 @@ class DynamicItem extends Command
if (! $do) if (! $do)
throw new \Exception(sprintf('Dynamic Item [%s] doesnt exist?',$this->argument('name'))); throw new \Exception(sprintf('Dynamic Item [%s] doesnt exist?',$this->argument('name')));
$ao = Address::findFTN($this->argument('ftn')); $d = new Dynamic($do,$do->address,Send::T_FILE);
$d = new Dynamic($do,$ao,Send::T_FILE);
$d->open(); $d->open();
echo $d->read($d->size); echo $d->read($d->size);