Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tomahock committed Jul 8, 2024
1 parent cdb1d78 commit a48b5f0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/Jobs/ProcessANPCAllDataV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,14 @@ public function handle()
}
} else {
if( $diff >= 10){
DiscordTool::postError('A API não atualiza ha 10 minutos');
$last['notify'] = true;
if(!$last['notify']){
DiscordTool::postError('A API não atualiza ha 10 minutos');
$last['notify'] = true;
$x[] = $last;
}

}

$x[] = $last;
}

file_put_contents('history.json', json_encode($x));
Expand Down

0 comments on commit a48b5f0

Please sign in to comment.