chore: tweak version utils

This commit is contained in:
Steven
2024-08-26 22:52:58 +08:00
parent 643a6051b2
commit ff035d25ba
9 changed files with 25 additions and 26 deletions

View File

@ -13,9 +13,9 @@ import (
"github.com/spf13/viper"
"github.com/yourselfhosted/slash/server"
"github.com/yourselfhosted/slash/server/common"
"github.com/yourselfhosted/slash/server/metric"
"github.com/yourselfhosted/slash/server/profile"
"github.com/yourselfhosted/slash/server/version"
"github.com/yourselfhosted/slash/store"
"github.com/yourselfhosted/slash/store/db"
)
@ -35,7 +35,7 @@ var (
Data: viper.GetString("data"),
DSN: viper.GetString("dsn"),
Driver: viper.GetString("driver"),
Version: version.GetCurrentVersion(viper.GetString("mode")),
Version: common.GetCurrentVersion(viper.GetString("mode")),
}
if err := serverProfile.Validate(); err != nil {
panic(err)