Skip to content

feat(llmo): include paid tier in CDN opt-in notification email#2550

Open
khushboo5723 wants to merge 1 commit into
mainfrom
feat/cdn-opt-in-email-paid-tier
Open

feat(llmo): include paid tier in CDN opt-in notification email#2550
khushboo5723 wants to merge 1 commit into
mainfrom
feat/cdn-opt-in-email-paid-tier

Conversation

@khushboo5723

Copy link
Copy Markdown
Contributor

Summary

  • Loads org LLMO entitlement from the database when sending the first edge opt-in notification (llmo_cdn_opt_in_notification).
  • Adds isPaidTier, customerTier, and tierKnown to Post Office templateData (same source of truth as GET /organizations/{id}/entitlements).
  • Runs entitlement lookup in parallel with org members fetch; failures are logged and do not block the email.

Post Office follow-up

Update the llmo_cdn_opt_in_notification template top notes to use isPaidTier (paid) vs tierKnown + not paid (free/trial). Backend change alone does not change email copy until the template is updated.

Test plan

  • npx mocha test/controllers/llmo/cdn-opt-in-notification.test.js (31 passing)
  • After deploy: trigger first edge opt-in on a paid vs free-trial org and verify log line includes tierKnown / isPaidTier
  • After Post Office template update: confirm top notes in received email

Made with Cursor

Load org LLMO entitlement when sending the first edge opt-in email so
Post Office can distinguish paid customers from free trial via isPaidTier.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

This PR will trigger a minor release when merged.

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants