Makes new job for Brian

This commit is contained in:
2022-09-30 23:19:15 -07:00
parent 556d6311ff
commit 55e3df7e94
5 changed files with 49 additions and 22 deletions

View File

@@ -61,25 +61,20 @@
:query-obj
{:venia/operation {:operation/type :mutation
:operation/name "RequestJob"}
:venia/variables [{:variable/name "args"
:variable/type :String
:variable/default (when (= which :bulk-journal-import)
(str/replace (pr-str (:data form))
"\"" "\\\""))}]
:venia/queries [{:query/data
[:request-job
{:which (name which)
:args :$args}
:args (when (= which :bulk-journal-import)
(str/escape (pr-str (:data form)) {\" "\\\""}))}
[:message]]}]}
:on-success [::success]}}))
(re-frame/reg-event-fx
::mounted
(fn [_]
{::track/register {:id ::params
{::track/register {:id ::params
:subscription [::data-page/params ::page]
:event-fn (fn [params]
:event-fn (fn [params]
[::params-change params])}}))
(re-frame/reg-event-fx