Merge branch 'lens-fix' (#2162)

* origin/lens-fix:
  lens: don't prematurely flush state

Signed-off-by: Jared Tobin <jared@tlon.io>
This commit is contained in:
Jared Tobin 2020-01-14 08:52:01 -08:00
commit 430f4c36d6
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4

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))
::