From: marina Date: Tue, 22 Jul 2025 10:16:03 +0000 (+0300) Subject: ERP-438 Доработка эндпойнтов X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=89bf9a41a204f78ad73232c29214c010adc1a513;p=erp24_rep%2Fyii-erp24%2F.git ERP-438 Доработка эндпойнтов --- diff --git a/erp24/api2/controllers/ClientController.php b/erp24/api2/controllers/ClientController.php index 69db2de8..d557ef69 100644 --- a/erp24/api2/controllers/ClientController.php +++ b/erp24/api2/controllers/ClientController.php @@ -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) {