mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: importing assets in subdirectories
Also fix lint
This commit is contained in:
committed by
Tienson Qin
parent
4524fc8370
commit
bb31c4e6f1
2
deps/graph-parser/script/db_import.cljs
vendored
2
deps/graph-parser/script/db_import.cljs
vendored
@@ -53,7 +53,7 @@
|
||||
(p/let [buffer (fs/readFileSync (:path file))
|
||||
checksum (db-asset/<get-file-array-buffer-checksum buffer)]
|
||||
(swap! assets assoc
|
||||
(node-path/basename (:path file))
|
||||
(gp-exporter/asset-path->name (:path file))
|
||||
{:size (.-length buffer)
|
||||
:checksum checksum
|
||||
:type (db-asset/asset-path->type (:path file))
|
||||
|
||||
Reference in New Issue
Block a user