postgres fix

pull/429/head
Hunter Long 2020-02-29 21:04:27 -08:00
parent 268108c409
commit c6a965e140
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ type ErrorResponse struct {
func LoadConfigFile(directory string) (*DbConfig, error) {
var configs *DbConfig
dbConn := utils.Getenv("DB_CONN", "")
dbConn := utils.Getenv("DB_CONN", "").(string)
if dbConn != "" {
log.Infof("DB_CONN=%s environment variable was found, waiting for database...", dbConn)

View File

@ -90,7 +90,7 @@ func Getenv(key string, defaultValue interface{}) interface{} {
var services []*types.Service
if err := json.Unmarshal([]byte(val), services); err != nil {
Log.Error("Incorrect formatting with SERVICE environment variable")
return nil
return []*types.Service{}
}
return services
default: