lens: don't prematurely flush state

This commit is contained in:
Isaac Visintainer 2020-01-10 12:55:58 -08:00
parent 2089045a4e
commit 2cd9fc75a4

View File

@ -94,7 +94,8 @@
::
%fact
=^ cards this (take-export !<(* q.cage.sign))
:_ this :_ cards
:_ this(job.state ~)
:_ cards
?> ?=(^ job.state)
?> ?=(%export -.source.com.u.job.state)
[%pass /export %agent [our.bowl app.source.com.u.job.state] %leave ~]
@ -135,7 +136,7 @@
=/ enc (en:base64 octs)
(pairs:enjs:format file+s+output data+s+enc ~)
::
:_ this(job.state ~)
:_ this
%+ give-simple-payload:app eyre-id.u.job.state
(json-response:gen (json-to-octs jon))
::