Files
Zero/apps/server
Adam 4c86d591ff Fix WorkflowRunner to use this.env instead of global env (#1857)
# Fix WorkflowRunner to use instance environment variables

## Description

This PR fixes an issue in the `WorkflowRunner` class where global `env` was being used instead of the instance's `this.env`. All references to the global `env` variable have been replaced with `this.env` to ensure proper access to environment variables within the Durable Object context.

## Type of Change

- [x] 🐛 Bug fix (non-breaking change which fixes an issue)

## Areas Affected

- [x] Email Integration (Gmail, IMAP, etc.)

## Testing Done

- [x] Manual testing performed

## Checklist

- [x] I have performed a self-review of my code
- [x] My changes generate no new warnings
- [x] All tests pass locally

## Additional Notes

This change ensures that the WorkflowRunner correctly accesses environment variables through the instance's context rather than relying on the global environment, which could lead to undefined behavior in a Cloudflare Workers environment.

---

_By submitting this pull request, I confirm that my contribution is made under the terms of the project's license._
2025-07-29 10:34:46 -07:00
..
2025-05-23 19:20:17 +05:30