From 13596436cd47c8be525320703aa18e5f29d31f07 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 10 Jul 2024 18:59:35 +0800 Subject: [PATCH] refactor: update viper config key for Pro edition check --- core/utils/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils/system.go b/core/utils/system.go index 9b161f11..6e501116 100644 --- a/core/utils/system.go +++ b/core/utils/system.go @@ -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" }