mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
rename variables
This commit is contained in:
parent
e680202b7e
commit
e788c71eff
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ const signToken = promisify(jwt.sign)
|
|||
const IMPORTER_METRICS_COLLECTOR_URL = env.queue.importerMetricsUrl
|
||||
const JWT_SECRET = env.server.jwtSecret
|
||||
|
||||
const MAX_ATTEMPTS = 1
|
||||
const MAX_IMPORT_ATTEMPTS = 1
|
||||
const REQUEST_TIMEOUT = 30000 // 30 seconds
|
||||
|
||||
interface Data {
|
||||
|
|
@ -274,7 +274,7 @@ export const savePageJob = async (data: Data, attemptsMade: number) => {
|
|||
|
||||
throw e
|
||||
} finally {
|
||||
const lastAttempt = attemptsMade + 1 === MAX_ATTEMPTS
|
||||
const lastAttempt = attemptsMade + 1 === MAX_IMPORT_ATTEMPTS
|
||||
|
||||
if (taskId && (isSaved || lastAttempt)) {
|
||||
logger.info('sending import status update')
|
||||
|
|
|
|||
Loading…
Reference in a new issue