Fork me on GitHub
#biff
<
2023-04-10
>
Mike Sugarbaker01:04:17

So, the submit-tx code doesn't currently seem to actually call await-tx as the docs claim... what's a good way to do this? I'm not currently getting fresh info when I do a query in the space of the same request.

Jacob O'Bryant01:04:31

most likely you're using an old db value. after you call biff/submit-tx, you need to do e.g. (xt/db (:biff.xtdb/node req)) to get a db value that includes the new tx

Mike Sugarbaker01:04:45

Oh cool. I wasn't expecting the immutability to run that deep!

Mike Sugarbaker01:04:14

Worked! Thanks

👌 3