OPS-161: Fix migration fix 🫠

This commit is contained in:
Andrew Mayorov 2022-09-01 18:24:23 +03:00
parent 818360deb8
commit 0453a67618
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D

View File

@ -31,7 +31,7 @@ migrate_legacy_payment_system_conditions(Data) ->
({AllAnyOf, PredicateSet}, _Annos) when AllAnyOf == all_of; AllAnyOf == any_of ->
% NOTE
% Reconstruct potentially broken set (e.g. with duplicate elements).
{replace, ordsets:from_list(migrate_legacy_payment_system_conditions(PredicateSet))};
{replace, {AllAnyOf, ordsets:from_list(migrate_legacy_payment_system_conditions(PredicateSet))}};
(Condition = #domain_BankCardCondition{}, _Annos) ->
{replace, migrate_legacy_payment_system_condition(Condition)};
(_, _Annos) ->