diff options
-rw-r--r-- | lib/dashing.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dashing.rb b/lib/dashing.rb index 37dc54d..04e4cee 100644 --- a/lib/dashing.rb +++ b/lib/dashing.rb @@ -80,8 +80,8 @@ def production? end def send_event(id, body) - body["id"] = id - body["updatedAt"] = Time.now.to_i + body[:id] = id + body[:updatedAt] ||= Time.now.to_i event = format_event(body.to_json) settings.history[id] = event settings.connections.each { |out| out << event } |