mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 07:08:31 +01:00
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>