Skip to content

Commit

Permalink
FIN-39: fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ttt161 committed Jun 26, 2024
1 parent 04c4185 commit bb64072
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/party_management/src/pm_claim.erl
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,16 @@ update_wallet({account_created, Account}, Wallet) ->
raise_invalid_changeset(Reason) ->
throw(#payproc_InvalidChangeset{reason = Reason}).

apply_additional_info_effect({party_name, undefined}, Party) ->
Party;
apply_additional_info_effect({party_name, PartyName}, Party) ->
pm_party:set_party_name(PartyName, Party);
apply_additional_info_effect({party_comment, undefined}, Party) ->
Party;
apply_additional_info_effect({party_comment, Comment}, Party) ->
pm_party:set_party_comment(Comment, Party);
apply_additional_info_effect({contact_info, #domain_PartyContactInfo{manager_contact_emails = undefined}}, Party) ->
Party;
apply_additional_info_effect({contact_info, #domain_PartyContactInfo{manager_contact_emails = Emails}}, Party) ->
ContactInfo = pm_party:get_contact_info(Party),
pm_party:set_contact_info(
Expand Down
6 changes: 6 additions & 0 deletions apps/party_management/src/pm_claim_committer_effect.erl
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,16 @@ apply_wallet_effect(ID, Effect, Party) ->
Wallet = pm_party:get_wallet(ID, Party),
pm_party:set_wallet(update_wallet(Effect, Wallet), Party).

apply_additional_info_effect({party_name, undefined}, Party) ->
Party;
apply_additional_info_effect({party_name, PartyName}, Party) ->
pm_party:set_party_name(PartyName, Party);
apply_additional_info_effect({party_comment, undefined}, Party) ->
Party;
apply_additional_info_effect({party_comment, Comment}, Party) ->
pm_party:set_party_comment(Comment, Party);
apply_additional_info_effect({contact_info, #domain_PartyContactInfo{manager_contact_emails = undefined}}, Party) ->
Party;
apply_additional_info_effect({contact_info, #domain_PartyContactInfo{manager_contact_emails = Emails}}, Party) ->
ContactInfo = pm_party:get_contact_info(Party),
pm_party:set_contact_info(
Expand Down

0 comments on commit bb64072

Please sign in to comment.