mirror of
https://github.com/penpot/penpot.git
synced 2025-02-12 18:18:24 -05:00
📎 Allow overwrite archive task props.
This commit is contained in:
parent
e768600df3
commit
c9985121c4
2 changed files with 5 additions and 2 deletions
|
@ -208,8 +208,11 @@
|
|||
(defmethod ig/init-key ::archive-task
|
||||
[_ {:keys [uri enabled] :as cfg}]
|
||||
(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))
|
||||
uri (or uri (:uri props))]
|
||||
uri (or uri (:uri props))
|
||||
cfg (assoc cfg :uri uri)]
|
||||
(when (and enabled (not uri))
|
||||
(ex/raise :type :internal
|
||||
:code :task-not-configured
|
||||
|
|
|
@ -6,7 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||
ENV NODE_VERSION=v14.17.5 \
|
||||
CLOJURE_VERSION=1.10.3.933 \
|
||||
CLJKONDO_VERSION=2021.07.28 \
|
||||
BABASHKA_VERSION=0.5.0 \
|
||||
BABASHKA_VERSION=0.5.1 \
|
||||
LANG=en_US.UTF-8 \
|
||||
LC_ALL=en_US.UTF-8
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue