Skip to content

Commit

Permalink
Merge branch 'main' of github.com:smarthome-go/smarthome
Browse files Browse the repository at this point in the history
  • Loading branch information
MikMuellerDev committed Aug 25, 2022
2 parents 5a1ea3c + ad9f986 commit e7aa8c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tar = mkdir -p build && cd ../ && tar -cvzf ./$(appname)_$(1)_$(2).tar.gz $(work
all: linux

# Setup dependencies for Go and NPM
setup: deps
setup:
cd web && npm i && npm run prepare

deps:
Expand Down
4 changes: 2 additions & 2 deletions core/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ func createNewConfigFile() (Config, error) {
return config, nil
}

func GetConfig() Config {
return config
func GetConfig() *Config {
return &config
}
2 changes: 1 addition & 1 deletion core/config/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func RunSetupStruct(setup SetupStruct) error {
}
// Initialize database (fresh setup)
if err := database.Init(
config.Database,
GetConfig().Database,
"admin",
); err != nil {
return err
Expand Down

0 comments on commit e7aa8c7

Please sign in to comment.