fix: remove serialization on already deserialized object (#3350)

This commit is contained in:
alechkos 2025-05-30 15:50:02 +03:00 • committed by GitHub
commit 0d040611e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ class Broadcast extends Base {
* Messages statuses
* @type {Message[]}
*/
this.msgs = data.msgs.map(msg => new Message(this.client, msg));
this.msgs = data.msgs?.map(msg => new Message(this.client, msg));
return super._patch(data);
}