From d383f5c1d847a5738e27b0f65fd0824b4121e350 Mon Sep 17 00:00:00 2001 From: wahyuun Date: Mon, 28 Aug 2023 18:13:41 +0700 Subject: [PATCH] update method endpoint --- app/Http/Controllers/Controller.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;