refactor: simplify parse-files-and-load-to-db! arguments

This commit is contained in:
Tienson Qin
2020-11-30 19:58:00 +08:00
parent 3f6c09935c
commit fccbcdd719
6 changed files with 99 additions and 80 deletions

View File

@@ -57,9 +57,7 @@
(repo-handler/start-repo-db-if-not-exists! repo {:db-type :local-native-fs})
(repo-handler/load-repo-to-db! repo
{:first-clone? true
:nfs-files (map :file/path files)
:nfs-contents (mapv (fn [f] [(:file/path f) (:file/content f)]) files)
:additional-files-info files})
:nfs-files files})
(state/add-repo! {:url repo :nfs? true}))))
(p/catch (fn [error]