From a632ae9fa1f91125a2a639873e349b0a9d3415ff Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 15 Jun 2022 18:27:55 -0400 Subject: [PATCH] Trying to fix send. --- src/websocket.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/websocket.ts b/src/websocket.ts index d8b6d79..f118dbb 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -1,4 +1,4 @@ -import { ClassConstructor, deserialize, serialize } from "class-transformer"; +import { ClassConstructor, deserialize } from "class-transformer"; import { CreateComment, CreateCommentLike, @@ -646,7 +646,7 @@ export class LemmyWebsocket { } function wrapper(op: UserOperation, data: MessageType) { - let send = { op: UserOperation[op], data: serialize(data) }; + let send = { op: UserOperation[op], data }; console.log(send); return JSON.stringify(send); }