mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Optimize directory sync performance
This commit is contained in:
@@ -11,10 +11,11 @@ export const calculateSync = async (workspace: Workspace) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const applySync = async (workspace: Workspace, ops: SyncOp[]) => {
|
||||
console.log('Applying sync', ops);
|
||||
export const applySync = async (workspace: Workspace, syncOps: SyncOp[]) => {
|
||||
console.log('Applying sync', syncOps);
|
||||
return invoke<void>('plugin:yaak-sync|apply', {
|
||||
workspaceId: workspace.id,
|
||||
dir: workspace.settingSyncDir,
|
||||
syncOps: syncOps
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user