saveAndUploadDocuments
suspend fun saveAndUploadDocuments(context: Context, documentsToUpload: List<DocumentToUpload>): List<Triple<Long?, DocumentToUpload, Boolean>>
Takes in a list of DocumentToUpload, generates entities from them and stores them into the database. Then begins the upload process by calling the DocumentUploadWorker.
Return
List
Parameters
context
Context that is required for the worker to run against
documentsToUpload
List of DocumentToUpload which are being saved and uploaded