message: improvement: parellelizing more db operations and using Promise.all
diff: @@ -27,11 +27,13 @@ const deleteUserTimelines = async (userRef: firestore.DocumentReference, deleted
  .collectionGroup('timeline')
  .where('actorRef', '==', userRef)
  .get();
  - for (const doc of userTimelines.docs) {
  + await Promise.all(
  + userTimelines.docs.map(async doc => {
  doc.ref.update({
  actorSnapshot: deletedUser,
  });
  - }
  + }),
  + );
  };
  const deletePinUserRequests = async (userRef: firestore.DocumentReference, deletedUser: User) => {
  @@ -41,7 +43,8 @@ const deletePinUserRequests = async (userRef: firestore.DocumentReference, delet
  .get();
  const nullLatLng = new firestore.GeoPoint(0, 0);
  const deletedAddress = 'deleted address';
  - for (const doc of userRequests.docs) {
  + await Promise.all(
  + userRequests.docs.map(async doc => {
  doc.ref.update({
  pinUserSnapshot: deletedUser,
  latLng: nullLatLng,
  @@ -57,7 +60,8 @@ const deletePinUserRequests = async (userRef: firestore.DocumentReference, delet
  requestSnapshot: deletedRequestSnapshot,
  });
  }
  - }
  + }),
  + );
  };
  const deleteCavUserRequests = async (userRef: firestore.DocumentReference, deletedUser: User) => {
  @@ -65,7 +69,8 @@ const deleteCavUserRequests = async (userRef: firestore.DocumentReference, delet
  .collection('requests')
  .where('cavUserRef', '==', userRef)
  .get();
  - for (const doc of userRequests.docs) {
  + await Promise.all(
  + userRequests.docs.map(async doc => {
  doc.ref.update({
  cavUserSnapshot: deletedUser,
  });
  @@ -77,7 +82,8 @@ const deleteCavUserRequests = async (userRef: firestore.DocumentReference, delet
  requestSnapshot: deletedRequestSnapshot,
  });
  }
  - }
  + }),
  + );
  };
  export const deleteUserData = functions.https.onCall(async (data, context) => {
  