mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
refactor and fixes
This commit is contained in:
1 parent
3b745a650d
commit
47c57158f4
17 files changed
+168
-84
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ module Submissions
|
||||
end
|
||||
|
||||
def create_from_emails(template:, user:, emails:, source:, send_email: false)
|
||||
emails = emails.to_s.scan(User::EMAIL_REGEXP)
|
||||
emails = emails.to_s.scan(User::EMAIL_REGEXP) unless emails.is_a?(Array)
|
||||
|
||||
emails.map do |email|
|
||||
submission = template.submissions.new(created_by_user: user, source:)
|
||||
|
||||
Reference in new issue
Block a user