Skip to content

Commit

Permalink
fix: do not encode string as JSON when writing to S3 local (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-goodwin authored Oct 26, 2023
1 parent d68b725 commit 9a944b9
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,7 @@ export class LocalBucketStore implements BucketStore, LocalSerializable {
const metaKey = `${bucketName}/${prefix}-${randomizer}${META_SUFFIX}`;
const { body, ...meta } = value;
return [
[
key,
Buffer.from(
typeof value.body === "string"
? JSON.stringify(value.body)
: value.body
),
],
[key, Buffer.from(value.body)],
[metaKey, Buffer.from(JSON.stringify(meta))],
];
})
Expand Down

0 comments on commit 9a944b9

Please sign in to comment.