From 6aba1354d5be83b706cbc8566438ce9ed115c5f7 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Thu, 4 Sep 2025 19:56:56 +0200 Subject: [PATCH] fix client api error handling #781 --- service/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/config.go b/service/config.go index 66e57e8..f54f275 100644 --- a/service/config.go +++ b/service/config.go @@ -142,7 +142,8 @@ func (s *ConfigService) Save(obj string, act string, data json.RawMessage, initU switch obj { case "clients": - inboundIds, err := s.ClientService.Save(tx, act, data, hostname) + var inboundIds []uint + inboundIds, err = s.ClientService.Save(tx, act, data, hostname) if err == nil && len(inboundIds) > 0 { objs = append(objs, "inbounds") err = s.InboundService.RestartInbounds(tx, inboundIds)