Skip to content

Commit

Permalink
Singularize _socket variable name in update_many/1 example (#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidOliver authored Jan 11, 2025
1 parent cc92bdd commit c306189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_live_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ defmodule Phoenix.LiveComponent do
of all assigns and sockets, allowing us to update many at once:
def update_many(assigns_sockets) do
list_of_ids = Enum.map(assigns_sockets, fn {assigns, _sockets} -> assigns.id end)
list_of_ids = Enum.map(assigns_sockets, fn {assigns, _socket} -> assigns.id end)
users =
from(u in User, where: u.id in ^list_of_ids, select: {u.id, u})
Expand Down

0 comments on commit c306189

Please sign in to comment.