Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

saving user_id as string in database

  • Loading branch information...
commit 7f7597f4208d2376bc4c2070165c75a88dc911ea 1 parent 5a4b36c
@railsjedi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/aarrr/session.rb
View
2  lib/aarrr/session.rb
@@ -69,7 +69,7 @@ def track!(event_name, options = {})
user_updates = {
"last_event_at" => Time.now.getutc
}
- user_updates["user_id"] = options["user_id"] if options["user_id"]
+ user_updates["user_id"] = options["user_id"].to_s if options["user_id"]
update({
"$set" => user_updates
})
Please sign in to comment.
Something went wrong with that request. Please try again.