MCPcopy Index your code
hub / github.com/simstudioai/sim / isUnsubscribed

Function isUnsubscribed

apps/sim/lib/billing/core/limit-notifications.ts:101–104  ·  view source on GitHub ↗

Whether a recipient has unsubscribed from all or from notification emails.

(email: string)

Source from the content-addressed store, hash-verified

99
100/** Whether a recipient has unsubscribed from all or from notification emails. */
101async function isUnsubscribed(email: string): Promise<boolean> {
102 const prefs = await getEmailPreferences(email)
103 return Boolean(prefs?.unsubscribeAll || prefs?.unsubscribeNotifications)
104}
105
106/**
107 * Resolve the recipients that should receive a limit email, with all opt-outs

Callers 1

resolveRecipientsFunction · 0.70

Calls 1

getEmailPreferencesFunction · 0.90

Tested by

no test coverage detected