update: check user

This commit is contained in:
tokumeikoi 2022-07-08 15:50:24 +08:00
parent 346d0222f5
commit 2073727a0a

View File

@ -43,7 +43,9 @@ class CheckUser extends Command
private function resetExpiredUserPlan($day = 14)
{
User::where('expired_at', '<', $day * 86400)->update([
User::where('expired_at', '<', $day * 86400)
->whereNotNull('expired_at')
->update([
'plan_id' => NULL,
'group_id' => NULL
]);