Skip to content

Commit

Permalink
fix no data updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahock committed Jul 15, 2024
1 parent 9d2f2db commit f9a8af9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/Jobs/ProcessANPCAllDataV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,16 @@ public function handle()
$last['ticks'] = 0;
}
} else {
if( $diff >= 10){
if( $diff >= 15){
if(!$last['notify']){
DiscordTool::postError('A API não atualiza ha 10 minutos');
$last['notify'] = true;
}
}

if($last['ticks'] % 5 == 0){
DiscordTool::postError('A API não atualiza ha '.$diff.' minutos');
if($last['ticks'] % 5 == 0){
DiscordTool::postError('A API não atualiza ha '.$diff.' minutos');
}

}

$last['ticks']++;
Expand Down

0 comments on commit f9a8af9

Please sign in to comment.