Fixes for relations

This commit is contained in:
David Bomba 2022-07-19 20:07:23 +10:00
parent 5e06dceb2f
commit a73e961123
3 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ class InvoiceArchivedActivity implements ShouldQueue
{ {
protected $activity_repo; protected $activity_repo;
public $delay = 5; public $delay = 15;
/** /**
* Create the event listener. * Create the event listener.

View File

@ -21,7 +21,7 @@ class InvoicePaidActivity implements ShouldQueue
{ {
protected $activity_repo; protected $activity_repo;
public $delay = 5; public $delay = 10;
/** /**
* Create the event listener. * Create the event listener.

View File

@ -71,22 +71,22 @@ class Task extends BaseModel
public function client() public function client()
{ {
return $this->belongsTo(Client::class); return $this->belongsTo(Client::class)->withTrashed();
} }
public function status() public function status()
{ {
return $this->belongsTo(TaskStatus::class); return $this->belongsTo(TaskStatus::class)->withTrashed();
} }
public function invoice() public function invoice()
{ {
return $this->belongsTo(Invoice::class); return $this->belongsTo(Invoice::class)->withTrashed();
} }
public function project() public function project()
{ {
return $this->belongsTo(Project::class); return $this->belongsTo(Project::class)->withTrashed();
} }