fix: version var in make file

This commit is contained in:
Lakhan Samani
2021-12-24 17:47:35 +05:30
parent 8f826e6c2f
commit 46a91fde20
3 changed files with 5 additions and 4 deletions

3
server/env/env.go vendored
View File

@@ -12,7 +12,6 @@ import (
// build variables
var (
VERSION string
ARG_DB_URL *string
ARG_DB_TYPE *string
ARG_AUTHORIZER_URL *string
@@ -34,8 +33,6 @@ func InitEnv() {
log.Printf("error loading %s file", constants.ENV_PATH)
}
constants.VERSION = VERSION
if constants.ADMIN_SECRET == "" {
constants.ADMIN_SECRET = os.Getenv("ADMIN_SECRET")
if constants.ADMIN_SECRET == "" {