Closed tiagomendonc closed 3 months ago
In the future, please provide a minimal repro rather than you full application. From what I can tell, you've missed an await
on your call to incrementOrderTotal
in your main function, which means the write to Firestore is happening after your function has completed. When there is no function running, the VM is severely throttled, which is most easily observed by network requests timing out. Adding an await
to keep your function executing while you still have outstanding work should fix this.
[REQUIRED] Version info
node: 18
firebase-functions: 4.4.0
firebase-tools: not used
firebase-admin: 11.8.0
[REQUIRED] Test case
We use a firestore function as a trigger, every time a doc is updated with some item, the function should update a field value.
[REQUIRED] Expected behavior
It was expected to the document be updated.
[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
Yes