Skip to content

Commit

Permalink
#1203 | Add username to uploaded database file name
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Nov 29, 2023
1 parent b54e11e commit 65d61a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openchs-android/src/service/BackupRestoreRealm.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class BackupRestoreRealmService extends BaseService {
General.logDebug("BackupRestoreRealmService", "Getting upload location");
cb(10, "backupUploading");
})
.then(() => mediaQueueService.getDumpUploadUrl(dumpType, `adhoc-dump-as-zip-${General.randomUUID()}`))
.then(() => mediaQueueService.getDumpUploadUrl(dumpType, `adhoc-dump-as-zip-${_.get(this.getService(UserInfoService).getUserInfo(), 'username')}-${General.randomUUID()}`))
.then((url) => mediaQueueService.foregroundUpload(url, destZipFile, (written, total) => {
General.logDebug("BackupRestoreRealmService", `Upload in progress ${written}/${total}`);
cb(10 + (97 - 10) * (written / total), "backupUploading");
Expand Down

0 comments on commit 65d61a5

Please sign in to comment.