From c061dc37324bfd5b852a7ef0979d87d6da9f4672 Mon Sep 17 00:00:00 2001 From: yashsinghcodes Date: Thu, 26 Jun 2025 19:33:00 +0530 Subject: [PATCH] get env based on orgId --- backend/go-app/walkoff.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/go-app/walkoff.go b/backend/go-app/walkoff.go index b2c48011..d33cee2c 100755 --- a/backend/go-app/walkoff.go +++ b/backend/go-app/walkoff.go @@ -281,7 +281,8 @@ func handleGetWorkflowqueue(resp http.ResponseWriter, request *http.Request) { ctx := shuffle.GetContext(request) // Get all env and check the name? - envs, err := shuffle.GetEnvironments(ctx, environment) + envs, err := shuffle.GetEnvironments(ctx, orgId) + if err != nil || len(envs) == 0 { log.Printf("[WARNING] No env found matching %s - continuing without updating orborus anyway: %s", environment, err) }