mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-28 19:22:39 +01:00
Improve initial sync subscription
This commit is contained in:
1 parent
bcf5b3db84
commit
576340db33
2 files changed
+40
-22
No files matched your search
@@ -53,10 +53,10 @@ export const syncWorkspace = createFastMutation<
|
||||
mutationFn: async ({ workspaceId, syncDir }) => {
|
||||
const ops = (await calculateSync(workspaceId, syncDir)) ?? [];
|
||||
if (ops.length === 0) {
|
||||
console.log('Nothing to sync', workspaceId, syncDir, ops);
|
||||
console.log('Nothing to sync', workspaceId, syncDir);
|
||||
return;
|
||||
}
|
||||
console.log('syncing workspace', workspaceId, syncDir, ops);
|
||||
console.log('Syncing workspace', workspaceId, syncDir, ops);
|
||||
|
||||
const dbOps = ops.filter((o) => o.type.startsWith('db'));
|
||||
|
||||
|
||||
Reference in new issue
Block a user