diff --git a/frontend/modules/api/models/ProfileSearchForm.php b/frontend/modules/api/models/ProfileSearchForm.php index ec782ba..e566b73 100644 --- a/frontend/modules/api/models/ProfileSearchForm.php +++ b/frontend/modules/api/models/ProfileSearchForm.php @@ -65,8 +65,10 @@ class ProfileSearchForm extends Model $model->with('skillValues'); } + $model->andWhere(['status' => [4, 12]]); + return $model->limit($this->limit) - ->offset($this->offset)->asArray()->all(); + ->offset($this->offset)->orderBy('id DESC')->asArray()->all(); } } \ No newline at end of file