add application key to submitters
This commit is contained in:
@@ -92,6 +92,7 @@ module Submissions
|
||||
email:,
|
||||
phone: attrs[:phone].to_s.gsub(/[^0-9+]/, ''),
|
||||
name: attrs[:name],
|
||||
application_key: attrs[:application_key],
|
||||
completed_at: attrs[:completed] ? Time.current : nil,
|
||||
sent_at: mark_as_sent && email.present? && is_order_sent ? Time.current : nil,
|
||||
values: attrs[:values] || {},
|
||||
|
||||
@@ -18,7 +18,7 @@ module Submitters
|
||||
|
||||
serialize_params = {
|
||||
include: {},
|
||||
only: %i[id slug uuid name email phone completed_at
|
||||
only: %i[id slug uuid name email phone completed_at application_key
|
||||
opened_at sent_at created_at updated_at]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user