Firebase – suspend function returning too early
I have the below function which is completely 2 task asynchronously to upload data to Firebase. I need the 2nd function to return the documentId of new document created in Firebase and once done the main function returns this documentId…