Files
vitareba/lib/config
g-butandClaude Opus 4.7 db27e398d1 fix(company): lowercase + dedupe ADMIN_EMAILS to stop double-emailing
getAdminEmails() trimmed entries but did not lowercase or dedupe. A
misconfigured env var like "manuel@x.com, MANUEL@x.com" would send
two copies of every admin notification (booking request, dip alert,
critical signal, profile completion) to the same person. It also
left case-sensitive entries that drifted from the new lowercase-on-
input policy applied to user records by emailField().

Now: lowercase each entry then deduplicate via Set while preserving
first-occurrence order. 9 new unit tests cover unset / empty / single
/ list / whitespace / empty-entries / case-mixed / dedupe / order.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 10:18:04 +02:00
..