Skip to content

Commit 3e8b295

Browse files
authored
fix validation exception
1 parent 227d9ff commit 3e8b295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/azure-store/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class AzureStore extends DataStore {
117117
const upload = JSON.parse(propertyData.metadata.upload) as Upload
118118
// Metadata is base64 encoded to avoid errors for non-ASCII characters
119119
// so we need to decode it separately
120-
upload.metadata = Metadata.parse(JSON.stringify(upload.metadata ?? {}))
120+
upload.metadata = upload.metadata ? Metadata.parse(upload.metadata) : {}
121121

122122
await this.cache.set(appendBlobClient.url, upload)
123123

0 commit comments

Comments
 (0)