fix newsletter dir not saved correctly
This commit is contained in:
@ -114,7 +114,9 @@ export const saveEmail = async (
|
||||
labelNames: labels.map((label) => label.name),
|
||||
itemLanguage: parseResult.parsedContent?.language,
|
||||
directionality:
|
||||
(parseResult.parsedContent?.dir as DirectionalityType) || undefined,
|
||||
parseResult.parsedContent?.dir?.toLowerCase() === 'rtl'
|
||||
? DirectionalityType.RTL
|
||||
: DirectionalityType.LTR, // default to LTR
|
||||
},
|
||||
input.userId
|
||||
)
|
||||
|
||||
@ -59,9 +59,6 @@ const getAttempts = (job: SavePageJob): number => {
|
||||
|
||||
const getOpts = (job: SavePageJob): BulkJobOptions => {
|
||||
return {
|
||||
jobId: `${JOB_NAME}_${job.userId}_${job.data.finalUrl}`, // make sure we don't have duplicate jobs
|
||||
removeOnComplete: true,
|
||||
removeOnFail: true,
|
||||
attempts: getAttempts(job),
|
||||
priority: getPriority(job),
|
||||
backoff: {
|
||||
|
||||
Reference in New Issue
Block a user