Preventing bad imports
This commit is contained in:
@@ -133,7 +133,12 @@
|
||||
{:id ::manual-import
|
||||
:events #{::manual/import-completed}
|
||||
:event-fn (fn [[_ {:keys [imported errors] :as result}]]
|
||||
[::status/info ::manual-import (str "Successfully imported " imported " transactions")])}]}))
|
||||
[::status/info ::manual-import (str "Successfully imported " imported " transactions"
|
||||
|
||||
(when (seq errors)
|
||||
(str
|
||||
", " (count errors) " errors. "
|
||||
"Example: '" (str (:info (first (:errors (first errors))))) "'")))])}]}))
|
||||
|
||||
|
||||
(defn content []
|
||||
|
||||
Reference in New Issue
Block a user