From 16ed53ef3151bd455e392f65d86d46447dda4701 Mon Sep 17 00:00:00 2001 From: Javad Tinatpak Date: Tue, 6 Aug 2024 16:47:24 +0330 Subject: [PATCH] fix bug --- web/controller/inbound.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/controller/inbound.go b/web/controller/inbound.go index 93b409e2..176d3bf8 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -261,9 +261,7 @@ func (a *InboundController) updateClientInMultipleInbounds(c *gin.Context) { } } - needRestart := true - - needRestart, err = a.inboundService.UpdateClientInMultipleInbounds(data, subId, payload.InboundIds) + needRestart, err := a.inboundService.UpdateClientInMultipleInbounds(data, subId, payload.InboundIds) if err != nil { jsonMsg(c, "Something went wrong!", err) return