From 6846d9b5fb87c6536b9b2fb13d42a3f49d7c3e4c Mon Sep 17 00:00:00 2001 From: soneda-yuya Date: Fri, 10 Jan 2025 19:44:58 +0900 Subject: [PATCH] fix: env name --- server/internal/app/config/config.go | 2 +- server/internal/app/repo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/internal/app/config/config.go b/server/internal/app/config/config.go index c857804677..c6dd49b069 100644 --- a/server/internal/app/config/config.go +++ b/server/internal/app/config/config.go @@ -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"` diff --git a/server/internal/app/repo.go b/server/internal/app/repo.go index 6e349a0d1e..3aa28b8e56 100644 --- a/server/internal/app/repo.go +++ b/server/internal/app/repo.go @@ -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 }