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 4a6e8696f4
commit 501d623175

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"
}