diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index 90e141a..c131d43 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -44,9 +44,8 @@ class Controller extends BaseController $userProyek = UserToProyek::from('assign_hr_to_proyek AS ' . $alias); $userProyek = $userProyek->where([ ['is_customer', true], - // $condition['user_id']['user_id'] - ['user_id', 1561] - ])->select('m_proyek.*', 'm_type_proyek.name AS nama_type_proyek'); + ['user_id', $condition['user_id']['user_id']] + ])->select('m_proyek.*', 'm_type_proyek.name AS join_second_name'); if (isset($condition['joins'])) { $no = 0;