db.transaction(tx => ...), so i'm trying to figure out a way for the Effect type to propagate up through the tx callback. I tried writing a helper for this but I was losing the types because of wrapping in runPromise. I had an LLM write me a helper that seems to work, but I wanted to see if I could get another pair of eyes on it to see if there's anything wrong with it