deal with empty remote
This commit is contained in:
parent
f58a71c1c4
commit
d9ccd2c7eb
@ -54,6 +54,7 @@ export const ensembleMixedStates = async (
|
|||||||
) => {
|
) => {
|
||||||
const results = {} as Record<string, FileOrFolderMixedState>;
|
const results = {} as Record<string, FileOrFolderMixedState>;
|
||||||
|
|
||||||
|
if (remote !== undefined) {
|
||||||
for (const entry of remote) {
|
for (const entry of remote) {
|
||||||
const backwardMapping = await getSyncMetaMappingByRemoteKeyS3(
|
const backwardMapping = await getSyncMetaMappingByRemoteKeyS3(
|
||||||
db,
|
db,
|
||||||
@ -89,6 +90,7 @@ export const ensembleMixedStates = async (
|
|||||||
results[key] = r;
|
results[key] = r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (const entry of local) {
|
for (const entry of local) {
|
||||||
let r = {} as FileOrFolderMixedState;
|
let r = {} as FileOrFolderMixedState;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user