Try to stringify jsonres.

This commit is contained in:
Dessalines 2022-06-15 18:38:03 -04:00
parent 1a456d1bae
commit 712d9c518c

View file

@ -679,5 +679,5 @@ export function wsJsonToRes<ResponseType>(
msg: any, msg: any,
responseClass: ClassConstructor<ResponseType> responseClass: ClassConstructor<ResponseType>
): ResponseType { ): ResponseType {
return deserialize(responseClass, msg.data); return deserialize(responseClass, JSON.stringify(msg.data));
} }