Skip to content

listing-import-failed

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

DomainChannelsRecipients
———
SourceContext
apps/worker/src/listing-import.ts:322notifyAdmins
export interface ListingImportFailedData {
errorCode: LeadIngestionErrorCode;
jobId: string | null;
failedImportId: string;
batchId: string;
adminUrl: string;
}

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