Skip to content

Commit 5e6939a

Browse files
committed
Refactor AzureAttachmentsService to improve content handling in the put method
1 parent 0c9b1e7 commit 5e6939a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/azure-blob-storage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ module.exports = class AzureAttachmentsService extends require("./basic") {
195195
)
196196
}
197197

198-
const { content = _content, ...metadata } = data
198+
let content = _content
199+
const { ...metadata } = data
199200
const blobName = metadata.url
200201

201202
if (!blobName) {

0 commit comments

Comments
 (0)