Skip to content

Commit

Permalink
fix(backend): recipe assoc preload (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino authored Jul 4, 2023
1 parent b6a0df7 commit 6bc1de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/core/lib/core/services/recipes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ defmodule Core.Services.Recipes do
end)
|> add_operation(:recipe, fn %{get: get} ->
case get do
%Recipe{} = r -> r
%Recipe{} = r -> Core.Repo.preload(r, [:dependencies])
nil -> %Recipe{repository_id: repo_id}
end
|> Recipe.changeset(build_dependencies(attrs))
Expand Down

0 comments on commit 6bc1de3

Please sign in to comment.