refactor: update viper config key for Pro edition check

This commit is contained in:
Marvin Zhang
2024-07-10 18:59:35 +08:00
parent e64ffb3dec
commit 13596436cd

View File

@@ -3,5 +3,5 @@ package utils
import "github.com/spf13/viper"
func IsPro() bool {
return viper.GetString("info.edition") == "global.edition.pro"
return viper.GetString("edition") == "global.edition.pro"
}