This commit is contained in:
Manav Rathi 2024-05-04 19:02:07 +05:30
parent 34c30e4520
commit fa8f229fcb
No known key found for this signature in database

View file

@ -183,9 +183,9 @@ const getEncryptedCollectionFiles = async (
},
);
const diff = resp.data.diff;
files = files.concat(diff.filter((file) => !file.isDeleted));
files = files.concat(diff.filter((file: EnteFile) => !file.isDeleted));
sinceTime = diff.reduce(
(max, file) => Math.max(max, file.updationTime),
(max: number, file: EnteFile) => Math.max(max, file.updationTime),
sinceTime,
);
} while (resp.data.hasMore);