mirror of
https://github.com/Mail-0/Zero.git
synced 2026-06-28 23:06:54 +00:00
# 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._