From 7a51d2f2cccbc0add04518808415912a7217bc28 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sun, 7 Jul 2024 11:55:59 +0200 Subject: Typo fixed --- web/controller/inbound.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'web/controller/inbound.go') diff --git a/web/controller/inbound.go b/web/controller/inbound.go index 511afd64..cc34d1d8 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -232,14 +232,12 @@ func (a *InboundController) resetClientTraffic(c *gin.Context) { } email := c.Param("email") - needRestart := true - - needRestart, err = a.inboundService.ResetClientTraffic(id, email) + needRestart, err := a.inboundService.ResetClientTraffic(id, email) if err != nil { jsonMsg(c, "Something went wrong!", err) return } - jsonMsg(c, "traffic reseted", nil) + jsonMsg(c, "Traffic has been reset", nil) if needRestart { a.xrayService.SetToNeedRestart() } @@ -253,7 +251,7 @@ func (a *InboundController) resetAllTraffics(c *gin.Context) { } else { a.xrayService.SetToNeedRestart() } - jsonMsg(c, "All traffics reseted", nil) + jsonMsg(c, "all traffic has been reset", nil) } func (a *InboundController) resetAllClientTraffics(c *gin.Context) { @@ -270,7 +268,7 @@ func (a *InboundController) resetAllClientTraffics(c *gin.Context) { } else { a.xrayService.SetToNeedRestart() } - jsonMsg(c, "All traffics of client reseted", nil) + jsonMsg(c, "All traffic from the client has been reset.", nil) } func (a *InboundController) importInbound(c *gin.Context) { @@ -313,9 +311,9 @@ func (a *InboundController) delDepletedClients(c *gin.Context) { jsonMsg(c, "Something went wrong!", err) return } - jsonMsg(c, "All delpeted clients are deleted", nil) + jsonMsg(c, "All depleted clients are deleted", nil) } func (a *InboundController) onlines(c *gin.Context) { - jsonObj(c, a.inboundService.GetOnlineClinets(), nil) + jsonObj(c, a.inboundService.GetOnlineClients(), nil) } -- cgit v1.2.3