deal with empty remote

This commit is contained in:
fyears 2021-10-25 01:01:04 +08:00
parent f58a71c1c4
commit d9ccd2c7eb

View File

@ -54,6 +54,7 @@ export const ensembleMixedStates = async (
) => {
const results = {} as Record<string, FileOrFolderMixedState>;
if (remote !== undefined) {
for (const entry of remote) {
const backwardMapping = await getSyncMetaMappingByRemoteKeyS3(
db,
@ -89,6 +90,7 @@ export const ensembleMixedStates = async (
results[key] = r;
}
}
}
for (const entry of local) {
let r = {} as FileOrFolderMixedState;