Skip to content

Commit

Permalink
Added user id to the add event
Browse files Browse the repository at this point in the history
  • Loading branch information
krak3n committed Mar 25, 2015
1 parent 4f18a8c commit a48d5b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fm/views/player.py
Expand Up @@ -302,7 +302,8 @@ def post(self):
# Publish the Add event
redis.publish(config.PLAYER_CHANNEL, json.dumps({
'event': 'add',
'uri': track.spotify_uri
'uri': track.spotify_uri,
'user': current_user.id
}))

return http.Created(location=url_for('tracks.track', pk_or_uri=track.id))

0 comments on commit a48d5b3

Please sign in to comment.