Skip to content

Commit 1b85023

Browse files
Merge branch 'Shuffle:main' into support-llm
2 parents 6f6955c + 30bfa32 commit 1b85023

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

db-connector.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6416,6 +6416,13 @@ func GetEnvironments(ctx context.Context, orgId string) ([]Environment, error) {
64166416
hideEnvs := false
64176417
multiEnvLimit := 0
64186418
if project.Environment == "onprem" {
6419+
if orgId == "" {
6420+
if debug {
6421+
log.Printf("[DEBUG] No orgId provided, skipping multi-env license check")
6422+
}
6423+
return environments, nil
6424+
}
6425+
64196426
currentOrg, err := GetOrg(ctx, orgId)
64206427
if err != nil {
64216428
log.Printf("[WARNING] Failed to get current org %s: %v", orgId, err)
@@ -17512,7 +17519,7 @@ func InitOpensearchIndexes() {
1751217519
GetESIndexPrefix("notifications"),
1751317520
GetESIndexPrefix("shuffle_logs"),
1751417521
GetESIndexPrefix("environments"),
17515-
GetESIndexPrefix("notifications"),
17522+
GetESIndexPrefix("org_statistics"),
1751617523
}
1751717524

1751817525
customConfig := os.Getenv("OPENSEARCH_INDEX_CONFIG")

0 commit comments

Comments
 (0)