mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
we don't want to create thumbnail for imported pages
This commit is contained in:
parent
0609043956
commit
ec88a9fe8e
1 changed files with 8 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue