refactor(server): use constant for external library batch size (#16685)

This commit is contained in:
Jonathan Jogenfors 2025-03-07 12:29:06 +01:00 committed by GitHub
parent fdf2331c82
commit 9959755dda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}
}