summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/packages/function/src/api.ts2
-rw-r--r--js/src/share/share.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/packages/function/src/api.ts b/app/packages/function/src/api.ts
index e126cc08a..7ec8a3a69 100644
--- a/app/packages/function/src/api.ts
+++ b/app/packages/function/src/api.ts
@@ -35,7 +35,7 @@ export class SyncServer extends DurableObject {
ws.close(code, "Durable Object is closing WebSocket")
}
- async publish(key: string, content: string) {
+ async publish(key: string, content: any) {
await this.ctx.storage.put(key, content)
const clients = this.ctx.getWebSockets()
diff --git a/js/src/share/share.ts b/js/src/share/share.ts
index b857cac59..e77f692f4 100644
--- a/js/src/share/share.ts
+++ b/js/src/share/share.ts
@@ -33,7 +33,7 @@ export namespace Share {
sessionID: sessionID,
shareID: session.shareID,
key: key,
- content: JSON.stringify(content),
+ content,
}),
});
})