Skip to content

Commit d126135

Browse files
committed
Refactor Azure Blob Storage client initialization and add cleanup functionality for Azure Blob objects
1 parent 4409e58 commit d126135

File tree

2 files changed

+386
-338
lines changed

2 files changed

+386
-338
lines changed

lib/azure-blob-storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = class AzureAttachmentsService extends require("./basic") {
5858
})
5959

6060
this.containerName = creds.container_name
61-
this.blobServiceClient = new BlobServiceClient(creds.container_uri + "?" + creds.sas_token)
61+
this.blobServiceClient = new BlobServiceClient(`${creds.container_uri}?${creds.sas_token}`)
6262
this.containerClient = this.blobServiceClient.getContainerClient(creds.container_name)
6363

6464
logConfig.info('Azure Blob Storage client initialized successfully', {

0 commit comments

Comments
 (0)