High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
refactor(server): use constant for external library batch size (#16685)
Jonathan Jogenfors9959755ddac1
diff --git a/server/src/services/library.service.ts b/server/src/services/library.service.tsindex 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();}}