chore: mark preferred domain to new domain when closing notice

This commit is contained in:
Colin Darie 2024-03-18 19:31:57 +01:00
parent a16f88f8af
commit 2f4444bd5e
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
9 changed files with 41 additions and 5 deletions

View file

@ -63,6 +63,12 @@ module Users
redirect_to profil_path
end
def preferred_domain
current_user.update_preferred_domain(request.host_with_port)
head :no_content
end
private
def find_transfers