Skip to content

Commit

Permalink
add @derive Jason.Encoder to Core.Account.User to prevent crash on HA…
Browse files Browse the repository at this point in the history
…/Cluster setup
  • Loading branch information
mellelieuwes committed Nov 16, 2023
1 parent 66dd3fc commit 9313176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions core/lib/core/accounts/user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ defmodule Core.Accounts.User do
import Ecto.Changeset

@derive {Inspect, except: [:password]}
@derive {Jason.Encoder, except: [:password]}
schema "users" do
field(:email, :string)
field(:password, :string, virtual: true)
Expand Down

0 comments on commit 9313176

Please sign in to comment.