diff --git a/server/src/services/library.service.ts b/server/src/services/library.service.ts index 787d09ca15..1039cff761 100644 --- a/server/src/services/library.service.ts +++ b/server/src/services/library.service.ts @@ -359,7 +359,7 @@ export class LibraryService extends BaseService { for await (const asset of assets) { chunk.push(asset.id); - if (chunk.length >= 10_000) { + if (chunk.length >= JOBS_LIBRARY_PAGINATION_SIZE) { await queueChunk(); } } @@ -736,7 +736,7 @@ export class LibraryService extends BaseService { for await (const asset of existingAssets) { chunk.push(asset.id); - if (chunk.length === 10_000) { + if (chunk.length === JOBS_LIBRARY_PAGINATION_SIZE) { await queueChunk(); } }