we don't want to create thumbnail for imported pages
This commit is contained in:
@ -186,11 +186,14 @@ export const savePage = async (
|
||||
}
|
||||
|
||||
// create a task to update thumbnail and pre-cache all images
|
||||
try {
|
||||
const taskId = await enqueueThumbnailTask(saver.userId, slug)
|
||||
logger.info('Created thumbnail task', { taskId })
|
||||
} catch (e) {
|
||||
logger.error('Failed to create thumbnail task', e)
|
||||
if (input.source !== 'csv-importer') {
|
||||
// we don't want to create thumbnail for imported pages
|
||||
try {
|
||||
const taskId = await enqueueThumbnailTask(saver.userId, slug)
|
||||
logger.info('Created thumbnail task', { taskId })
|
||||
} catch (e) {
|
||||
logger.error('Failed to create thumbnail task', e)
|
||||
}
|
||||
}
|
||||
|
||||
if (parseResult.highlightData) {
|
||||
|
||||
Reference in New Issue
Block a user