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:
orris-inc
2026-03-17 15:00:06 +08:00
parent c70ba898de
commit 2466d8fa8f

View File

@@ -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,
})