fetch moon observers job

This commit is contained in:
2020-05-27 01:21:31 -05:00
parent 75c3705fb0
commit 580968a4a3

View File

@@ -90,7 +90,7 @@ class FetchMoonObserverJob implements ShouldQueue
//Run through the mining observers, and add them to the database as needed
foreach($response as $observer) {
CorpMoonObserver::where(['observer_id' => $observer->observer_id])->count();
$count = CorpMoonObserver::where(['observer_id' => $observer->observer_id])->count();
//If the observer is not found, then add it to the database
if($count == 0) {
$obs = new CorpMoonObserver;