hrms-api-org/src/services
waruneeauy af2bd5054f feat: clear menu and role cache when organization structure is published
Add Redis cache clearing to handler_org function to clear all menu_* and role_* keys
after successfully publishing organization structure changes. This ensures users
see updated permissions and menus immediately after publish.

- Add promisify import and Redis client setup
- Add clearMenuAndRoleCache helper function
- Call cache clearing before successful return

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 11:37:57 +07:00
..
ActingPositionService.ts API permission with acting positions 2026-04-17 14:18:54 +07:00
CommandService.ts แก้ข้อความ/ตัดข้อมูลรายงาน ทปอ.สามัญ #2274 2026-03-20 11:02:53 +07:00
KeycloakAttributeService.ts add api sync-missing-emptype 2026-04-28 11:38:47 +07:00
OrganizationService.ts fix: bug query 2026-02-19 15:41:49 +07:00
PositionService.ts fix แสดงกรณีรักษาการแทนผิด #2472 2026-05-12 11:51:57 +07:00
ProfileLeaveService.ts Fix bug #54 2026-02-20 11:46:46 +07:00
rabbitmq.ts feat: clear menu and role cache when organization structure is published 2026-05-14 11:37:57 +07:00
RetirementService.ts fixed condition check 2026-05-08 14:47:58 +07:00
webSocket.ts #139 2025-07-22 09:57:09 +07:00