use string interpolation

This commit is contained in:
Girish Ramakrishnan
2022-04-26 18:53:07 -07:00
parent 9b6733fd88
commit be458020dd
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -893,7 +893,7 @@ async function uploadAppSnapshot(backupConfig, app, progressCallback) {
await snapshotApp(app, progressCallback);
const remotePath = util.format('snapshot/app_%s', app.id);
const remotePath = `snapshot/app_${app.id}`;
const appDataDir = safe.fs.realpathSync(path.join(paths.APPS_DATA_DIR, app.id));
if (!appDataDir) throw new BoxError(BoxError.FS_ERROR, `Error resolving appsdata: ${safe.error.message}`);
@@ -912,7 +912,7 @@ async function uploadAppSnapshot(backupConfig, app, progressCallback) {
await runBackupUploadAsync(uploadConfig, progressCallback);
debug(`uploadAppSnapshot: ${app.fqdn} upload to ${remotePath}. ${(new Date() - startTime)/1000} seconds`);
debug(`uploadAppSnapshot: ${app.fqdn} uploaded to ${remotePath}. ${(new Date() - startTime)/1000} seconds`);
await backups.setSnapshotInfo(app.id, { timestamp: new Date().toISOString(), manifest: app.manifest, format: backupConfig.format });
}