Skip to content

Commit

Permalink
Fix user update
Browse files Browse the repository at this point in the history
  • Loading branch information
macifell committed Dec 14, 2023
1 parent ad3aa5d commit 24f7698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/recognizer/bigcommerce.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ defmodule Recognizer.BigCommerce do
end

def update_customer(user) do
case Client.update_customer(user) do
{:ok, _}->
case Client.update_customer(Repo.preload(user, :bigcommerce_user)) do
{:ok, _} ->
{:ok, user}

{:error, e} ->
Expand Down

0 comments on commit 24f7698

Please sign in to comment.