Skip to content

Commit d0f2bc3

Browse files
Merge pull request #235 from yashsinghcodes/quick
fix the issue where the default env orgId was overwritten by empty orgId
2 parents f0eec64 + 9fe56cb commit d0f2bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db-connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5634,7 +5634,7 @@ func GetEnvironments(ctx context.Context, orgId string) ([]Environment, error) {
56345634
}
56355635

56365636
defer res.Body.Close()
5637-
if res.StatusCode == 404 {
5637+
if res.StatusCode == 404 && len(orgId) > 0 {
56385638
item := Environment{
56395639
Name: "Shuffle",
56405640
Type: "onprem",

0 commit comments

Comments
 (0)