diff --git a/internal/config/config.go b/internal/config/config.go index 41f17c6..26691fd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -116,7 +116,7 @@ func defaultConfig() *Config { IM: IMConfig{ BaseURL: "https://api.118im.com", HTTPAPIURL: "https://api.118im.com/v1/im", WebSocketURL: "wss://api.118im.com/v0/channels", FileURL: "https://api.118im.com/v0/file", - TenantCode: "allrich", APIKey: "AQAAAAABAAChdu8_yk0OxZcId6FnwYNS", + TenantCode: "default", APIKey: "AQAAAAABAAChdu8_yk0OxZcId6FnwYNS", InternalService: "olons-server", Timeout: 8 * time.Second, }, ReadTimeout: 8 * time.Second, diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 269ab5d..54d4420 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -11,6 +11,9 @@ func TestDefaultConfigUsesOlonsAdmin(t *testing.T) { if err := cfg.validate(); err != nil { t.Fatal(err) } + if cfg.IM.TenantCode != "default" { + t.Fatalf("unexpected default IM tenant: %q", cfg.IM.TenantCode) + } } func TestConfigRejectsOtherDatabase(t *testing.T) {