From fef3f26ae35b094ea430deff56f53fb7a410d44a Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 7 Jul 2021 16:50:11 +0300 Subject: [PATCH] user card api --- frontend/modules/api/models/ProfileSearchForm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/modules/api/models/ProfileSearchForm.php b/frontend/modules/api/models/ProfileSearchForm.php index e566b73..52a85af 100644 --- a/frontend/modules/api/models/ProfileSearchForm.php +++ b/frontend/modules/api/models/ProfileSearchForm.php @@ -66,6 +66,7 @@ class ProfileSearchForm extends Model } $model->andWhere(['status' => [4, 12]]); + $model->andWhere(['deleted_at' => null]); return $model->limit($this->limit) ->offset($this->offset)->orderBy('id DESC')->asArray()->all();