promise all sync
This commit is contained in:
parent
2012758383
commit
b6df3f7ed5
@ -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!");
|
||||
}
|
||||
});
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user