I’m trying to update a property(amount) in a document twice, once to decrease the amount and then to increase it. However it does not get decreased. Is there a conflict with the updates in the batch or is there something else going on?
I have two batch update functions on one docRef, it was supposed to decrease and increase the amount in the document, but it only increases it.
New contributor
Jorgen Johansen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.