mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-04 04:23:16 +00:00
chore: tweak version utils
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user