summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-24 17:58:43 -0400
committerDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-24 18:11:29 -0400
commit372ee8475ef9b685e8cd3b8dea2e0475d5a4bd6b (patch)
tree50ea3907fad8c970736a62b4338475bcf483618d /lib
parentb585121df5976a514c06981de73c611b8a3157d3 (diff)
Keep track of updatedAt server side, instead of on widgets.
Diffstat (limited to 'lib')
-rw-r--r--lib/dashing.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dashing.rb b/lib/dashing.rb
index ee7cd1f..beb7eca 100644
--- a/lib/dashing.rb
+++ b/lib/dashing.rb
@@ -81,6 +81,7 @@ end
def send_event(id, body)
body["id"] = id
+ body["updatedAt"] = Time.now
event = format_event(JSON.unparse(body))
settings.history[id] = event
settings.connections.each { |out| out << event }