limit 20k articles per pocket import

This commit is contained in:
Hongbo Wu 2023-07-21 18:03:57 +08:00
parent 818b607b85
commit 0d3b742837
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ export function integrationsServiceRouter() {
total: offset,
size: retrievedData.length,
})
} while (retrievedData.length > 0)
} while (retrievedData.length > 0 && offset < 20000) // limit to 20k pages
}
// update the integration's syncedAt and remove taskName

View file

@ -177,7 +177,7 @@ export default function Integrations(): JSX.Element {
icon: '/static/icons/pocket.svg',
title: 'Pocket',
subText:
'Pocket is a place to save articles, videos, and more. Our Pocket integration allows importing your Pocket library to Omnivore. Once connected we will asyncronously import all your Pocket articles into Omnivore, as this process is resource intensive it can take some time. You will receive an email when the process is completed.',
'Pocket is a place to save articles, videos, and more. Our Pocket integration allows importing your Pocket library to Omnivore. Once connected we will asyncronously import all your Pocket articles into Omnivore, as this process is resource intensive it can take some time. You will receive an email when the process is completed. Limit 20k articles per import.',
button: {
text: pocketConnected ? 'Import' : 'Connect to Pocket',
icon: isImporting(pocketConnected) ? (