I have a problem with transactions in payload local API. After creating a transaction and adding it to the request, it is lost after the first call with the local API.
// within a custom express request handler
const transactionID = await req.payload.db.beginTransaction?.();
console.log(transactionID) // --> '8796cb59-39b3-480c-bda5-248e7039eedc'
req.transactionID = transactionID
await req.payload.findByID({
...stuff
req,
})
console.log(req.transactionID) // --> undefined 🤔
Is this expected behavior?