Skip to content

Commit

Permalink
#1276 | Revert code change that stopped popping mediaQueueItem after …
Browse files Browse the repository at this point in the history
…successful upload
  • Loading branch information
himeshr committed Jan 11, 2024
1 parent 9fabc86 commit e19dde6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/openchs-android/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/openchs-android/src/service/MediaQueueService.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class MediaQueueService extends BaseService {
})
.then(() => this.uploadToUrl(uploadUrl, mediaQueueItem))
.then(() => this.replaceObservation(mediaQueueItem, uploadUrl))
.then(() => this.popItem(mediaQueueItem))
.catch((error) => {
General.logError("MediaQueueService", `Error while uploading ${mediaQueueItem.uuid} - ${mediaQueueItem.fileName}`);
General.logError("MediaQueueService", error);
Expand Down

0 comments on commit e19dde6

Please sign in to comment.