@@ -747,7 +747,7 @@ public static function getUsersByPengelola($role, $tanggal)
747
747
$ usersIdByPengelola = Pengelola::cache ()
748
748
->get ('all ' )
749
749
->where ('role ' , $ role )
750
- ->whereDate ('active ' , '< ' , $ tanggal )
750
+ ->where ('active ' , '< ' , $ tanggal )
751
751
->reject (function ($ item ) use ($ tanggal ) {
752
752
return $ item ['inactive ' ] && $ item ['inactive ' ] < $ tanggal ;
753
753
})
@@ -758,7 +758,7 @@ public static function getUsersByPengelola($role, $tanggal)
758
758
$ usersIdByUnitKerja = DataPegawai::cache ()
759
759
->get ('all ' )
760
760
->where ('unit_kerja_id ' , self ::getPropertyFromCollection (self ::getDataPegawaiByUserId (Auth::user ()->id , $ tanggal ), 'unit_kerja_id ' ))
761
- ->whereDate ('tanggal ' , '<= ' , $ tanggal )
761
+ ->where ('tanggal ' , '<= ' , $ tanggal )
762
762
->pluck ('user_id ' )
763
763
->toArray ();
764
764
$ koordinatorsId = array_intersect ($ usersIdByPengelola , $ usersIdByUnitKerja );
@@ -807,7 +807,7 @@ public static function setDefaultPesertaRapat($tujuan, $tanggal)
807
807
*/
808
808
public static function getDataPegawaiByUserId ($ user_id , $ tanggal )
809
809
{
810
- return DataPegawai::cache ()->get ('all ' )->where ('user_id ' , $ user_id )->whereDate ('tanggal ' , '<= ' , $ tanggal )->sortByDesc ('tanggal ' )->first ();
810
+ return DataPegawai::cache ()->get ('all ' )->where ('user_id ' , $ user_id )->where ('tanggal ' , '<= ' , $ tanggal )->sortByDesc ('tanggal ' )->first ();
811
811
}
812
812
813
813
/**
@@ -1644,7 +1644,7 @@ public static function getTemplatePathById($id)
1644
1644
*/
1645
1645
public static function getLatestTataNaskahId ($ tanggal )
1646
1646
{
1647
- return self ::getPropertyFromCollection (TataNaskah::cache ()->get ('all ' )->whereDate ('tanggal ' , '<= ' , $ tanggal )->sortByDesc ('tanggal ' )->first (), 'id ' );
1647
+ return self ::getPropertyFromCollection (TataNaskah::cache ()->get ('all ' )->where ('tanggal ' , '<= ' , $ tanggal )->sortByDesc ('tanggal ' )->first (), 'id ' );
1648
1648
}
1649
1649
1650
1650
/**
@@ -1666,7 +1666,7 @@ public static function getLatestHargaSatuanId($tanggal)
1666
1666
*/
1667
1667
public static function getLatestHargaSatuan ($ tanggal )
1668
1668
{
1669
- return HargaSatuan::cache ()->get ('all ' )->whereDate ('tanggal ' , '<= ' , $ tanggal )->sortByDesc ('tanggal ' )->first ();
1669
+ return HargaSatuan::cache ()->get ('all ' )->where ('tanggal ' , '<= ' , $ tanggal )->sortByDesc ('tanggal ' )->first ();
1670
1670
}
1671
1671
1672
1672
/**
0 commit comments