backupsite: remove bc- prefix from id

This commit is contained in:
Girish Ramakrishnan
2025-10-01 10:27:14 +02:00
parent 0f29652b96
commit ab0f8fc081
3 changed files with 3 additions and 3 deletions

View File

@@ -542,7 +542,7 @@ async function add(data, auditSource) {
privateKeyEncoding: { type: 'pkcs8', format: 'pem' }
});
const id = `bc-${crypto.randomUUID()}`;
const id = crypto.randomUUID();
if (!safe.fs.mkdirSync(`${paths.BACKUP_INFO_DIR}/${id}`)) throw new BoxError(BoxError.FS_ERROR, `Failed to create info dir: ${safe.error.message}`);
debug('add: validating new storage configuration');