Skip to content

Commit 9a944b9

Browse files
authored
fix: do not encode string as JSON when writing to S3 local (#474)
1 parent d68b725 commit 9a944b9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/@eventual/core-runtime/src/local/stores/bucket-store.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,7 @@ export class LocalBucketStore implements BucketStore, LocalSerializable {
5454
const metaKey = `${bucketName}/${prefix}-${randomizer}${META_SUFFIX}`;
5555
const { body, ...meta } = value;
5656
return [
57-
[
58-
key,
59-
Buffer.from(
60-
typeof value.body === "string"
61-
? JSON.stringify(value.body)
62-
: value.body
63-
),
64-
],
57+
[key, Buffer.from(value.body)],
6558
[metaKey, Buffer.from(JSON.stringify(meta))],
6659
];
6760
})

0 commit comments

Comments
 (0)