mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:06:56 -04:00
- only queue checkBulkUpload if list not empty
This commit is contained in:
parent
371e06220a
commit
c4d7fd3f57
@ -147,7 +147,9 @@ export const checkForDuplicates = async (files: string[], { concurrency, skipHas
|
||||
|
||||
await queue.drained();
|
||||
|
||||
await checkBulkUploadQueue.push(checkBulkUploadRequests);
|
||||
if (checkBulkUploadRequests.length > 0) {
|
||||
void checkBulkUploadQueue.push([...checkBulkUploadRequests]);
|
||||
}
|
||||
|
||||
await checkBulkUploadQueue.drained();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user