From 65d61a52a1edeaa832e6cd891f9ea37988e1c7fa Mon Sep 17 00:00:00 2001 From: Joy A Date: Wed, 29 Nov 2023 17:25:19 +0530 Subject: [PATCH] #1203 | Add username to uploaded database file name --- packages/openchs-android/src/service/BackupRestoreRealm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/openchs-android/src/service/BackupRestoreRealm.js b/packages/openchs-android/src/service/BackupRestoreRealm.js index b29c9bce3..2b285cacb 100644 --- a/packages/openchs-android/src/service/BackupRestoreRealm.js +++ b/packages/openchs-android/src/service/BackupRestoreRealm.js @@ -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");