mirror of
https://github.com/valitydev/dominant.git
synced 2024-11-06 02:25:17 +00:00
OPS-161: Fix potentially broken sets during migration (#21)
This commit is contained in:
parent
6f4ec7d9b8
commit
818360deb8
@ -28,6 +28,10 @@ migrate_legacy_payment_system_conditions(Data) ->
|
||||
% anyway.
|
||||
genlib_ted:run(
|
||||
fun
|
||||
({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))};
|
||||
(Condition = #domain_BankCardCondition{}, _Annos) ->
|
||||
{replace, migrate_legacy_payment_system_condition(Condition)};
|
||||
(_, _Annos) ->
|
||||
|
Loading…
Reference in New Issue
Block a user