File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11# IAM Changelog
22
3- ## Version 3.4.3(current stable)
3+ ## Version 3.4.4 (current stable)
4+ * bug fix in endpoint whoami when get jabatanPegawai
5+
6+ ## Version 3.4.3
47* adjust payload endpoint api/pegawais/v3/info/from-iam-token
58
69## Version 3.4.2
Original file line number Diff line number Diff line change 11api_platform :
22 title : IAM API Docs
3- version : 3.4.3
3+ version : 3.4.4
44 description : |
55 Bug report and feature request are welcome, please report [here](https://gitlab.com/dadangnh/iam/-/issues).
66 Newest production version are always available at [https://iam.pajak.or.id/api](https://iam.pajak.or.id/api)
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ public function onJwtCreated(JWTCreatedEvent $event): void
6868 /** @var JabatanPegawai $jabatanPegawai */
6969 foreach ($ user ->getPegawai ()->getJabatanPegawais () as $ jabatanPegawai ) {
7070 // Only add jabatan pegawai that is active and not expired
71- if ($ jabatanPegawai ->getTanggalMulai () <= new DateTimeImmutable ('now ' )
72- && ($ jabatanPegawai ->getTanggalSelesai () >= new DateTimeImmutable ('now ' )
71+ if ($ jabatanPegawai ->getTanggalMulai () <= new DateTimeImmutable ('today ' )
72+ && ($ jabatanPegawai ->getTanggalSelesai () >= new DateTimeImmutable ('today ' )
7373 || null === $ jabatanPegawai ->getTanggalSelesai ())
7474 ) {
7575 /** @var Jabatan $jabatan */
@@ -113,8 +113,8 @@ public function onJwtCreated(JWTCreatedEvent $event): void
113113 /** @var JabatanPegawaiLuar $jabatanPegawaiLuar */
114114 foreach ($ user ->getPegawaiLuar ()->getJabatanPegawaiLuars () as $ jabatanPegawaiLuar ) {
115115 // Only add jabatan pegawai that is active and not expired
116- if ($ jabatanPegawaiLuar ->getTanggalMulai () <= new DateTimeImmutable ('now ' )
117- && ($ jabatanPegawaiLuar ->getTanggalSelesai () >= new DateTimeImmutable ('now ' )
116+ if ($ jabatanPegawaiLuar ->getTanggalMulai () <= new DateTimeImmutable ('today ' )
117+ && ($ jabatanPegawaiLuar ->getTanggalSelesai () >= new DateTimeImmutable ('today ' )
118118 || null === $ jabatanPegawaiLuar ->getTanggalSelesai ())
119119 ) {
120120 /** @var JabatanLuar $jabatanLuar */
You can’t perform that action at this time.
0 commit comments