We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 360d6fb commit 0cff44dCopy full SHA for 0cff44d
rails_application/lib/transformations/refund_to_return_event_mapper.rb
@@ -19,8 +19,8 @@ def load(record)
19
event_type: new_class_name,
20
data: transformed_data,
21
metadata: record.metadata,
22
- timestamp: record.timestamp,
23
- valid_at: record.valid_at
+ timestamp: record.timestamp || Time.now.utc,
+ valid_at: record.valid_at || Time.now.utc
24
)
25
else
26
record
0 commit comments