Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-07-07 12:55:59 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-07-07 13:10:24 +0300
commit7a51d2f2cccbc0add04518808415912a7217bc28 (patch)
treecc4bce27d16caec5361d51de676eecd0c628ad0d /main.go
parent02ae61fe6beb68ab8e5859a5eaa2b68514c0b454 (diff)
Typo fixed
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 42514127..cc58d07b 100644
--- a/main.go
+++ b/main.go
@@ -159,19 +159,19 @@ func showSetting(show bool) {
func updateTgbotEnableSts(status bool) {
settingService := service.SettingService{}
- currentTgSts, err := settingService.GetTgbotenabled()
+ currentTgSts, err := settingService.GetTgbotEnabled()
if err != nil {
fmt.Println(err)
return
}
logger.Infof("current enabletgbot status[%v],need update to status[%v]", currentTgSts, status)
if currentTgSts != status {
- err := settingService.SetTgbotenabled(status)
+ err := settingService.SetTgbotEnabled(status)
if err != nil {
fmt.Println(err)
return
} else {
- logger.Infof("SetTgbotenabled[%v] success", status)
+ logger.Infof("SetTgbotEnabled[%v] success", status)
}
}
}