Ah in that case you have multiple things
Ah, in that case you have multiple things you need to await (cause you need to fetch the data and then store it in cache). You could put it all in an async function like so:
There is probably a more clean way to write this, but I'm not that great with JS syntax. Or you could use
waitUntil
, but I'm not sure how you'd do that in itty durable.2 Replies