refactor(fs): handle asset deletion

This commit is contained in:
Andelf
2023-03-11 00:59:03 +08:00
parent 269718d92c
commit bbb655ff43
8 changed files with 81 additions and 41 deletions

View File

@@ -202,7 +202,7 @@
(if (string/blank? asset-path)
(reset! *exist? false)
;; FIXME(andelf): possible bug here
(p/let [exist? (fs/file-or-href-exists? "" asset-path)]
(p/let [exist? (fs/asset-href-exists? asset-path)]
(reset! *exist? (boolean exist?))))
(assoc state ::asset-path asset-path ::asset-file? true))
state)))