Skip to content

Commit

Permalink
fix: env name
Browse files Browse the repository at this point in the history
  • Loading branch information
soneda-yuya committed Jan 10, 2025
1 parent 55dfe84 commit 6846d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/internal/app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type Config struct {
Dev bool `pp:",omitempty"`
DB string `default:"mongodb://localhost"`
DB_Account string `pp:",omitempty"`
DB_Visualizer string `pp:",omitempty"`
DB_Vis string `pp:",omitempty"`
DB_Users []appx.NamedURI `pp:",omitempty"`
GraphQL GraphQLConfig `pp:",omitempty"`
Published PublishedConfig `pp:",omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion server/internal/app/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func initReposAndGateways(ctx context.Context, conf *config.Config, debug bool)
}

// for reearth database
visualizerDatabase := conf.DB_Visualizer
visualizerDatabase := conf.DB_Vis
if visualizerDatabase == "" {
visualizerDatabase = defaultDatabase
}
Expand Down

0 comments on commit 6846d9b

Please sign in to comment.