Browse Source

update method endpoint

pull/3/head
wahyuun 1 year ago
parent
commit
d383f5c1d8
  1. 5
      app/Http/Controllers/Controller.php

5
app/Http/Controllers/Controller.php

@ -44,9 +44,8 @@ class Controller extends BaseController
$userProyek = UserToProyek::from('assign_hr_to_proyek AS ' . $alias); $userProyek = UserToProyek::from('assign_hr_to_proyek AS ' . $alias);
$userProyek = $userProyek->where([ $userProyek = $userProyek->where([
['is_customer', true], ['is_customer', true],
// $condition['user_id']['user_id'] ['user_id', $condition['user_id']['user_id']]
['user_id', 1561] ])->select('m_proyek.*', 'm_type_proyek.name AS join_second_name');
])->select('m_proyek.*', 'm_type_proyek.name AS nama_type_proyek');
if (isset($condition['joins'])) { if (isset($condition['joins'])) {
$no = 0; $no = 0;

Loading…
Cancel
Save