(workosUserId?: string)
| 198 | * Invalidate web admin status cache for a user (call when admin membership changes) |
| 199 | */ |
| 200 | export function invalidateWebAdminStatusCache(workosUserId?: string): void { |
| 201 | if (workosUserId) { |
| 202 | webAdminStatusCache.delete(workosUserId); |
| 203 | } else { |
| 204 | webAdminStatusCache.clear(); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Invalidate all admin caches (both Slack and web) |
no test coverage detected