Space sync now scheduled

This commit is contained in:
Zef Hemel
2023-08-15 20:24:02 +02:00
parent 7cce83b240
commit bd77f2932c
6 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { editor } from "$sb/silverbullet-syscall/mod.ts";
import { editor, sync } from "$sb/silverbullet-syscall/mod.ts";
export async function syncSpaceCommand() {
await editor.flashNotification("Syncing space...");
await editor.syncSpace();
await sync.scheduleSpaceSync();
await editor.flashNotification("Done.");
}