add coronavirus activate/inactivate

This commit is contained in:
Roland Schneider 2020-04-20 22:11:29 +02:00
parent 5d847e2538
commit 9d861a9194

View File

@ -44,7 +44,6 @@ class CustomerActivateForm extends Model{
Card::updateAll( Card::updateAll(
[ [
'status' => Card::STATUS_ACTIVE, 'status' => Card::STATUS_ACTIVE,
'end' => 'date_add( end, INTERVAL datediff(current_date, c.inactivated_at) DAY )'
], ],
[ [
'status' => Card::STATUS_INACTIVE 'status' => Card::STATUS_INACTIVE