From fe087a517b872ffde7122b5de737252b742d9dcb Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 17 Jul 2024 14:58:52 +0300 Subject: [PATCH] =?utf8?q?=D0=9D=D0=B0=D1=87=D0=B8=D1=81=D0=BB=D1=8F=D0=B5?= =?utf8?q?=D0=BC=20=D0=B8=20=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D0=B0?= =?utf8?q?=D0=BD=D1=8B=D0=BC=20=D0=B8=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=B4?= =?utf8?q?=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BD=D1=8B=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php b/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php index 1f817f58..b61d5e5a 100644 --- a/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php +++ b/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php @@ -12,8 +12,8 @@ use yii_app\records\UsersBonus; class Add20TelegramCreatedAtIsNullAction extends Action { public function run() { - $users = Users::find()->where(['telegram_is_subscribed' => 1]) - ->andWhere(['>=', 'date', '2024-07-15 17:30:00']) + $users = Users::find() + ->where(['>=', 'date', '2024-07-15 17:30:00']) ->andWhere(['<=', 'date', '2024-07-17 12:37:16+03']) ->andWhere(['IS NOT', 'date_first_sale', null]) ->orderBy('id desc') -- 2.39.5