Переглянути джерело

refacotr(db): remove with-latest-txs

defclass 5 роки тому
батько
коміт
15e1eeb81a
2 змінених файлів з 0 додано та 8 видалено
  1. 0 0
      src/main/frontend/db.cljs
  2. 0 8
      src/main/frontend/db/model.cljs

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
src/main/frontend/db.cljs


+ 0 - 8
src/main/frontend/db/model.cljs

@@ -1254,14 +1254,6 @@
       (state/set-config! repo-url config)
       (state/set-config! repo-url config)
       config)))
       config)))
 
 
-(defn with-latest-txs!
-  [db repo file?]
-  (let [txs (state/get-repo-latest-txs repo file?)
-        tx-data (when (seq txs) (map :tx-data txs))]
-    (if (seq tx-data)
-      (d/db-with db tx-data)
-      db)))
-
 (defn get-db-type
 (defn get-db-type
   [repo]
   [repo]
   (get-key-value repo :db/type))
   (get-key-value repo :db/type))

Деякі файли не було показано, через те що забагато файлів було змінено