diff --git a/apps/core/guides/tutorial.md b/apps/core/guides/tutorial.md index 95a0186d..9c9e493b 100644 --- a/apps/core/guides/tutorial.md +++ b/apps/core/guides/tutorial.md @@ -301,7 +301,7 @@ We also need to filter the items shown based on the current user. In inventory.e ```elixir def list_items(user_id) do Item - |> where(owner_id: user_id) + |> where(owner_id: ^user_id) |> Repo.all() end ```