Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from Sage-Bionetworks/pending-upload-flag
Browse files Browse the repository at this point in the history
Add pendingUploads flag to UploadRequester.
  • Loading branch information
nategbrown9 authored May 19, 2021
2 parents 57311c3 + bf54660 commit ad3b3f6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class UploadRequester(
).enqueue()
}

val pendingUploads = database.getResources(ResourceType.FILE_UPLOAD, APP_WIDE_STUDY_ID).isNotEmpty()
|| database.getResources(ResourceType.UPLOAD_SESSION, APP_WIDE_STUDY_ID).isNotEmpty()

// This is a temporary helper method for testing upload with Bridge -nbrown 01/08/21
@Throws(IOException::class)
private fun writeTestZipFileTo(os: OutputStream?): ZipOutputStream {
Expand Down

0 comments on commit ad3b3f6

Please sign in to comment.