These are chat archives for Automattic/mongoose
findOneAndUpdateto set a couple of fields (
trueand in the callback function we then create the subscription via PayPal. That returns some data that I then want to add to another field in the model. Do I call another findOneAndUpdate inside the callback or is there a better way? Any help most appreciated.