Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sharat87 committed Nov 23, 2024
1 parent 032df64 commit 5770dd0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/client/packages/rts/src/ctl/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class BackupState {
readonly initAt: string = getTimeStampInISO();
readonly errors: string[] = [];

backupRootPath: string;
archivePath: string;
backupRootPath: string = "";
archivePath: string = "";

encryptionPassword: string;
encryptionPassword: string = "";

isEncryptionEnabled() {
return !!this.encryptionPassword;
Expand Down
10 changes: 8 additions & 2 deletions app/client/packages/rts/src/ctl/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ async function getBackupFileName() {
}
}

async function decryptArchive(encryptedFilePath: string, backupFilePath: string) {
async function decryptArchive(
encryptedFilePath: string,
backupFilePath: string,
) {
console.log("Enter the password to decrypt the backup archive:");

for (const attempt of [1, 2, 3]) {
Expand Down Expand Up @@ -227,7 +230,10 @@ async function restoreDockerEnvFile(
console.log("Restoring docker environment file completed");
}

async function restoreGitStorageArchive(restoreContentsPath: string, backupName: string) {
async function restoreGitStorageArchive(
restoreContentsPath: string,
backupName: string,
) {
console.log("Restoring git-storage archive");
const gitRoot = "/appsmith-stacks/git-storage";

Expand Down

0 comments on commit 5770dd0

Please sign in to comment.