Skip to content

Commit

Permalink
pass string value for user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
raghuramg committed Nov 28, 2023
1 parent 17c19d8 commit f5771c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/event_source/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def build_command_event(event_key, options = {})

def user_session_details
@user_session_details = {}
@user_session_details[:user_id] = current_user.id if defined? current_user
@user_session_details[:user_id] = current_user.id.to_s if defined? current_user
@user_session_details[:session_details] = {
portal: session[:portal],
person_id: session[:person_id],
Expand Down

0 comments on commit f5771c4

Please sign in to comment.