Browse Source

Fix two incorrect calls caught by tests

Gabriel Horner 3 years ago
parent
commit
f4a012dfd6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/fs/sync.cljs

+ 2 - 2
src/main/frontend/fs/sync.cljs

@@ -255,7 +255,7 @@
       ([result] (rf result))
       ([result ^FileTxn filetxn]
        (if (and
-            (or (.-updated? filetxn) (.deleted? filetxn))
+            (or (.-updated? filetxn) (.-deleted? filetxn))
             (contains? @seen-update&delete-filetxns filetxn))
          result
          (do (vswap! seen-update&delete-filetxns conj filetxn)
@@ -600,7 +600,7 @@
     (.-updated? (first filetxns))
     (update-local-files rsapi graph-uuid base-path (map relative-path filetxns))
 
-    (.deleted? (first filetxns))
+    (.-deleted? (first filetxns))
     (let [filetxn (first filetxns)]
       (assert (= 1 (count filetxns)))
       (go