get env based on orgId

This commit is contained in:
yashsinghcodes
2025-06-26 19:33:00 +05:30
parent 78baecb253
commit c061dc3732
+2 -1
View File
@@ -281,7 +281,8 @@ func handleGetWorkflowqueue(resp http.ResponseWriter, request *http.Request) {
ctx := shuffle.GetContext(request) ctx := shuffle.GetContext(request)
// Get all env and check the name? // 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 { if err != nil || len(envs) == 0 {
log.Printf("[WARNING] No env found matching %s - continuing without updating orborus anyway: %s", environment, err) log.Printf("[WARNING] No env found matching %s - continuing without updating orborus anyway: %s", environment, err)
} }