Skip to content

Commit

Permalink
chore(books): remove unused assoc field :balance_config from BookMe…
Browse files Browse the repository at this point in the history
…mber (#349)
  • Loading branch information
Gladear authored Jan 15, 2025
1 parent 994d9f8 commit 3515ef8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/app/lib/app/books/book_member.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ defmodule App.Books.BookMember do
nickname: String.t() | nil,
email: String.t() | nil,
balance_config_id: BalanceConfig.id() | nil,
balance_config: BalanceConfig.t() | Ecto.Association.NotLoaded.t() | nil,
balance: Money.t() | nil,
balance_errors: [String.t()],
inserted_at: NaiveDateTime.t() | nil,
Expand All @@ -47,7 +46,7 @@ defmodule App.Books.BookMember do
field :email, :string, virtual: true

# the current balance configuration for this member
belongs_to :balance_config, BalanceConfig
field :balance_config_id, :integer
# Filled by the `Balance` context. If the `:balance_errors` is set, the balance
# was not computed correctly.
field :balance, Money.Ecto.Composite.Type, virtual: true
Expand Down

0 comments on commit 3515ef8

Please sign in to comment.