Skip to content

Commit

Permalink
Fix player state mutations not checking auth πŸ› (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
doughsay authored Sep 24, 2022
1 parent 5032fd7 commit 77b4490
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ambry_schema/media.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ defmodule AmbrySchema.Media do
field :player_state, non_null(:player_state)
end

middleware AmbrySchema.AuthMiddleware

resolve &Resolvers.load_player_state/2
end

Expand All @@ -92,6 +94,8 @@ defmodule AmbrySchema.Media do
field :player_state, non_null(:player_state)
end

middleware AmbrySchema.AuthMiddleware

resolve &Resolvers.update_player_state/2
end
end
Expand Down

0 comments on commit 77b4490

Please sign in to comment.