do not email archived user

This commit is contained in:
Pete Matsyburka committed 2026-09-10 19:17:27 +03:00
1 parent 1416cf72e8
commit 660b24710e
3 files changed
+7 -2

No files matched your search

+4
View File
@@ -3,6 +3,10 @@
module Users
module_function
def send_emails?(user)
!user.archived_at?
end
def generate_csv(users)
headers = %w[email first_name last_name role current_sign_in_at last_sign_in_at updated_at created_at]