Skip to content

🧹 Refactor R2 file retrieval and JSON parsing into shared utility - #77

Merged
frkr merged 1 commit into
mainfrom
fix-r2-duplication-mq-12078493282600782264
Jun 8, 2026
Merged

🧹 Refactor R2 file retrieval and JSON parsing into shared utility#77
frkr merged 1 commit into
mainfrom
fix-r2-duplication-mq-12078493282600782264

Conversation

@frkr

@frkr frkr commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Extracted duplicated R2 retrieval and JSON parsing logic into new readR2Text and readR2Json utilities in src/front/lib/mqr2.ts. Updated MQDestiny, MQCallback, MQStore, and MQProc to use these utilities, improving maintainability and reducing code duplication. Ensured null-safety for message property access and followed existing path alias conventions.

Extracted duplicated R2 retrieval and JSON parsing logic into new `readR2Text` and `readR2Json` utilities in `src/front/lib/mqr2.ts`.
Updated `MQDestiny`, `MQCallback`, `MQStore`, and `MQProc` to use these utilities, improving maintainability and reducing code duplication.
Ensured null-safety for message property access and followed existing path alias conventions.

Co-authored-by: frkr <185359+frkr@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
cfgateway 55c6327 Jun 08 2026, 11:13 AM

@frkr
frkr merged commit fed622a into main Jun 8, 2026
3 of 4 checks passed
@frkr
frkr deleted the fix-r2-duplication-mq-12078493282600782264 branch June 8, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant