From a73e9611234070e3dbafd5cf96d9c7ac8f07d0ed Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 19 Jul 2022 20:07:23 +1000 Subject: [PATCH] Fixes for relations --- app/Listeners/Invoice/InvoiceArchivedActivity.php | 2 +- app/Listeners/Invoice/InvoicePaidActivity.php | 2 +- app/Models/Task.php | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Listeners/Invoice/InvoiceArchivedActivity.php b/app/Listeners/Invoice/InvoiceArchivedActivity.php index 785983123fbf..5118ac5a29c9 100644 --- a/app/Listeners/Invoice/InvoiceArchivedActivity.php +++ b/app/Listeners/Invoice/InvoiceArchivedActivity.php @@ -21,7 +21,7 @@ class InvoiceArchivedActivity implements ShouldQueue { protected $activity_repo; - public $delay = 5; + public $delay = 15; /** * Create the event listener. diff --git a/app/Listeners/Invoice/InvoicePaidActivity.php b/app/Listeners/Invoice/InvoicePaidActivity.php index ec162331cbc2..040b12317a1c 100644 --- a/app/Listeners/Invoice/InvoicePaidActivity.php +++ b/app/Listeners/Invoice/InvoicePaidActivity.php @@ -21,7 +21,7 @@ class InvoicePaidActivity implements ShouldQueue { protected $activity_repo; - public $delay = 5; + public $delay = 10; /** * Create the event listener. diff --git a/app/Models/Task.php b/app/Models/Task.php index 1829b5011c97..0693eb0041c7 100644 --- a/app/Models/Task.php +++ b/app/Models/Task.php @@ -71,22 +71,22 @@ class Task extends BaseModel public function client() { - return $this->belongsTo(Client::class); + return $this->belongsTo(Client::class)->withTrashed(); } public function status() { - return $this->belongsTo(TaskStatus::class); + return $this->belongsTo(TaskStatus::class)->withTrashed(); } public function invoice() { - return $this->belongsTo(Invoice::class); + return $this->belongsTo(Invoice::class)->withTrashed(); } public function project() { - return $this->belongsTo(Project::class); + return $this->belongsTo(Project::class)->withTrashed(); }