diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-07 12:55:59 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-07 13:10:24 +0300 |
| commit | 7a51d2f2cccbc0add04518808415912a7217bc28 (patch) | |
| tree | cc4bce27d16caec5361d51de676eecd0c628ad0d /web/controller/inbound.go | |
| parent | 02ae61fe6beb68ab8e5859a5eaa2b68514c0b454 (diff) | |
Typo fixed
Diffstat (limited to 'web/controller/inbound.go')
| -rw-r--r-- | web/controller/inbound.go | 14 |
1 files changed, 6 insertions, 8 deletions
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) } |
