0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

📎 Allow overwrite archive task props.

This commit is contained in:
Andrey Antukh 2021-08-27 09:42:33 +02:00
parent e768600df3
commit c9985121c4
2 changed files with 5 additions and 2 deletions

View file

@ -208,8 +208,11 @@
(defmethod ig/init-key ::archive-task (defmethod ig/init-key ::archive-task
[_ {:keys [uri enabled] :as cfg}] [_ {:keys [uri enabled] :as cfg}]
(fn [props] (fn [props]
;; NOTE: this let allows overwrite default configured values from
;; the repl, when manually invoking the task.
(let [enabled (or enabled (:enabled props false)) (let [enabled (or enabled (:enabled props false))
uri (or uri (:uri props))] uri (or uri (:uri props))
cfg (assoc cfg :uri uri)]
(when (and enabled (not uri)) (when (and enabled (not uri))
(ex/raise :type :internal (ex/raise :type :internal
:code :task-not-configured :code :task-not-configured

View file

@ -6,7 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive
ENV NODE_VERSION=v14.17.5 \ ENV NODE_VERSION=v14.17.5 \
CLOJURE_VERSION=1.10.3.933 \ CLOJURE_VERSION=1.10.3.933 \
CLJKONDO_VERSION=2021.07.28 \ CLJKONDO_VERSION=2021.07.28 \
BABASHKA_VERSION=0.5.0 \ BABASHKA_VERSION=0.5.1 \
LANG=en_US.UTF-8 \ LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 LC_ALL=en_US.UTF-8