Trying to fix send.
This commit is contained in:
parent
f21e75b985
commit
a632ae9fa1
1 changed files with 2 additions and 2 deletions
|
@ -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<MessageType>(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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue