mirror of
https://github.com/orris-inc/orris.git
synced 2026-05-06 21:44:01 +08:00
fix: add address_preference to forward rule repository Update map
The Updates map in ForwardRuleRepositoryImpl.Update was missing the address_preference field, causing address preference changes to be silently dropped during persistence despite being correctly applied in the domain layer.
This commit is contained in:
@@ -240,7 +240,8 @@ func (r *ForwardRuleRepositoryImpl) Update(ctx context.Context, rule *forward.Fo
|
||||
"traffic_multiplier": model.TrafficMultiplier,
|
||||
"sort_order": model.SortOrder,
|
||||
"group_ids": model.GroupIDs,
|
||||
"route_config": model.RouteConfig,
|
||||
"route_config": model.RouteConfig,
|
||||
"address_preference": model.AddressPreference,
|
||||
"updated_at": model.UpdatedAt,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user