Skip to content

Commit

Permalink
fix: fix movie watch status
Browse files Browse the repository at this point in the history
fix movie watch status create due to missing movie id variable on window
  • Loading branch information
trueChazza committed Feb 27, 2022
1 parent 815cdf3 commit b749707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/media_server_web/templates/watch/watch.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
window.userId = <%= assigns[:current_user].id %>;
window.userEmail = "<%= assigns[:current_user].email %>";
window.userName = "<%= assigns[:current_user].name %>";
<%= if assigns[:movie_id] do %>
window.movie_id = <%= assigns[:movie_id] %>;
<%= if assigns[:movie] do %>
window.movie_id = <%= assigns[:movie]["id"] %>;
<% end %>
<%= if assigns[:episode] do %>
window.episode_id = <%= assigns[:episode]["id"] %>;
Expand Down

0 comments on commit b749707

Please sign in to comment.