numerique-gouv / people

Teams management application
MIT License
13 stars 1 forks source link

🐛(mailboxes) fix logic when attempting to duplicate mailboxes #534

Open mjeammet opened 2 days ago

mjeammet commented 2 days ago

Purpose

Logic was broken when attempting to duplicate mailboxes, where infos were sent to dimail before checking for uniqueness.

Proposal

I'd rather add this logic to a validate function in serializer, but that would require some heavier refacto (addition of domain in serializer or at least in context)