fix: update status although email not set
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-13 21:03:28 +08:00
parent 04e6853222
commit dfdc2a0756
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -94,6 +94,9 @@ class UOJMail {
DB::update("update emails set send_time = now() where id = {$email['id']}");
echo '[UOJMail::cronSendEmail] ID: ' . $email['id'] . ' sent.' . "\n";
}
} else {
DB::update("update emails set send_time = now() where id = {$email['id']}");
echo '[UOJMail::cronSendEmail] ID: ' . $email['id'] . ' - empty email address.' . "\n";
}
}