Skip to content

account-purge-failed

Source of truth: packages/notifications/src/translations.ts

DomainChannelsRecipients
———
SourceContext
apps/worker/src/accounts.ts:648notifyAdminsOfPurgeFailure
export interface AccountPurgeFailedData {
errorCode: LeadIngestionErrorCode;
jobId: string | null;
failedPurgeId: string;
requestId: string;
adminUrl: string;
}

The caller invokes triggerWorkflow('account-purge-failed', recipientIds, data) where data is the AccountPurgeFailedData shape above. The server pre-translates the payload via getTranslatedPayload('account-purge-failed', recipientLocale, data) from @repo/notifications before sending, producing { inAppBody, emailSubject, emailBody } for the dashboard templates to render.