promise all sync
This commit is contained in:
+3
-1
@@ -290,6 +290,7 @@ export const doActualSync = async (
|
||||
keyStates: Record<string, FileOrFolderMixedState>,
|
||||
password: string = ""
|
||||
) => {
|
||||
await Promise.all(
|
||||
Object.entries(keyStates)
|
||||
.sort((k, v) => -(k as string).length)
|
||||
.map(async ([k, v]) => {
|
||||
@@ -388,5 +389,6 @@ export const doActualSync = async (
|
||||
} else {
|
||||
throw Error("this should never happen!");
|
||||
}
|
||||
});
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user