diff --git a/app/Jobs/Commands/Assets/FetchAllianceAssets.php b/app/Jobs/Commands/Assets/FetchAllianceAssets.php index 084f1bba9..4a729d05b 100644 --- a/app/Jobs/Commands/Assets/FetchAllianceAssets.php +++ b/app/Jobs/Commands/Assets/FetchAllianceAssets.php @@ -154,6 +154,7 @@ class FetchAllianceAssets implements ShouldQueue break; case 201: //Good response code + $this->delete(); break; //If no code is given, then log and break out of switch. default: diff --git a/app/Jobs/Commands/Assets/PurgeAllianceAssets.php b/app/Jobs/Commands/Assets/PurgeAllianceAssets.php index 86cfcd4ca..a31781219 100644 --- a/app/Jobs/Commands/Assets/PurgeAllianceAssets.php +++ b/app/Jobs/Commands/Assets/PurgeAllianceAssets.php @@ -54,6 +54,6 @@ class PurgeAllianceAssets implements ShouldQueue { Asset::truncate(); - FetchAllianceAssets::dispatch(); + FetchAllianceAssets::dispatch()->delay(Carbon::now()->addSeconds(30)); } } diff --git a/app/Jobs/Commands/Finances/UpdateAllianceWalletJournalPage.php b/app/Jobs/Commands/Finances/UpdateAllianceWalletJournalPage.php index f0f5d4863..38013b02d 100644 --- a/app/Jobs/Commands/Finances/UpdateAllianceWalletJournalPage.php +++ b/app/Jobs/Commands/Finances/UpdateAllianceWalletJournalPage.php @@ -204,6 +204,7 @@ class UpdateAllianceWalletJournalPage implements ShouldQueue break; case 201: //Good response code + $this->delete(); break; //If no code is given, then log and break out of switch. default: diff --git a/app/Jobs/Commands/Structures/PurgeAllianceStructures.php b/app/Jobs/Commands/Structures/PurgeAllianceStructures.php index 302f0aa1c..194468e6b 100644 --- a/app/Jobs/Commands/Structures/PurgeAllianceStructures.php +++ b/app/Jobs/Commands/Structures/PurgeAllianceStructures.php @@ -55,8 +55,8 @@ class PurgeAllianceStructures implements ShouldQueue { Structure::truncate(); Service::truncate(); - - FetchAllianceStructures::dispatch(); + + FetchAllianceStructures::dispatch()->delay(Carbon::now()->addSeconds(30)); } /**