fix: env check condition

This commit is contained in:
yashsinghcodes
2026-01-13 19:09:56 +05:30
parent ed6417b9be
commit 6921a63cc5
+1 -1
View File
@@ -2652,7 +2652,7 @@ func handleWorkflowQueue(resp http.ResponseWriter, request *http.Request) {
}
}
if strings.ToLower(actionResult.Action.Environment) != environment {
if strings.ToLower(actionResult.Action.Environment) != environment && len(environment) > 0 {
log.Printf("[WARNING] Got an action for %s environment forwarding it to the backend", actionResult.Action.Environment)
streamUrl := fmt.Sprintf("%s/api/v1/streams", baseUrl)