Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Finish and remove upload session #70

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class UploadManager(
}

/**
* Finishes an upload session and add the transfer to the database .
* Finishes an upload session and add the transfer to the database.
*
* @param uuid The UUID of the upload session.
*
Expand Down Expand Up @@ -242,6 +242,7 @@ class UploadManager(
uploadRepository.finishUpload(finishUploadBody).first()
}.getOrElse { throw UnknownException(it) }

uploadController.removeUploadSession(uuid)
transferManager.addTransferByLinkUUID(finishUploadResponse.linkUUID)
// TODO: If we can't retrieve the transfer cause of the Internet, we should put it in Realm and try again later.

Expand Down
Loading