]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-438 Доработка эндпойнтов
authormarina <m.zozirova@gmail.com>
Tue, 22 Jul 2025 10:16:03 +0000 (13:16 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 22 Jul 2025 10:16:03 +0000 (13:16 +0300)
erp24/api2/controllers/ClientController.php

index 69db2de81a7336638f3ae2b7deda3bd7b9161b81..d557ef6904317c4849fa8ef75846007e682f33b0 100644 (file)
@@ -902,9 +902,9 @@ class ClientController extends BaseController
             return $this->asJson(['error' => ['code' => 400, 'message' => 'Недостаточно параметров']]);
         }
 
-        $user = UsersBonus::find()
+        $user = Users::find()
             ->andFilterWhere(['phone' => $phone])
-            ->andFilterWhere(['user_id' => $clientId])
+            ->andFilterWhere(['id' => $clientId])
             ->one();
 
         if (!$user) {