update: reset by next year

This commit is contained in:
tokumeikoi
2022-05-30 15:42:25 +08:00
parent cdd55eae4c
commit 4a9e0ba94c
3 changed files with 42 additions and 41 deletions

View File

@ -99,7 +99,7 @@ class ResetTraffic extends Command
private function resetByYear($builder):void
{
if ((string)date('d') === '01' && (string)date('m') === '01') {
if ((string)date('md') === '0101') {
$builder->update([
'u' => 0,
'd' => 0