fix manager

This commit is contained in:
Kavalar 2023-05-17 00:20:51 +03:00
parent 7eab647ff7
commit b32b35540b

View File

@ -377,7 +377,7 @@ class ProjectController extends ApiController
$model = Manager::find()->with(['managerEmployees'])->where(['user_id' => $user_id])->one(); $model = Manager::find()->with(['managerEmployees'])->where(['user_id' => $user_id])->one();
if (!$model) { if (!$model) {
throw new BadRequestHttpException(json_encode(['Менеджер не найден'])); return [];
} }
return $model; return $model;