Skip to content

Commit

Permalink
πŸ› Bug - prevented the uptime report caching from running twice
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenMelbz committed May 25, 2020
1 parent 2560682 commit 307b33d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Jobs/CacheUptimeReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ public function __construct(Website $website)
public function handle()
{
$this->website->generateUptimeReport(true);
$this->website->unqueue('uptime');
}
}
2 changes: 1 addition & 1 deletion app/Jobs/UptimeCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ public function handle()
$checker = new Uptime($this->website);
$checker->run();

$this->website->unqueue('uptime');
// The unqueue is annoyingly configured in the CacheUptimeReport class
}
}

0 comments on commit 307b33d

Please sign in to comment.