RootCauseunvalidated
I would recommend to do less things in the transaction — Also, do the user document update with the transaction so that the updated fields are rolling back if the transaction fails/retries. Tension: Limiting it to only handle the enrollment logic. Outcome: do the user document update with the transaction so that the updated fields are rolling back if the transaction fails/retries.
49840171-f497-41f8-807d-310732ae0c1a
I would recommend to do less things in the transaction — Also, do the user document update with the transaction so that the updated fields are rolling back if the transaction fails/retries. Tension: Limiting it to only handle the enrollment logic. Outcome: do the user document update with the transaction so that the updated fields are rolling back if the transaction fails/retries.