From 51e5572f82b9584b5bd2c8b132441315bf489d2e Mon Sep 17 00:00:00 2001 From: Lucas Maia <58118141+Iucasmaia@users.noreply.github.com> Date: Mon, 20 Jun 2022 07:14:24 -0300 Subject: [PATCH] Update group.js (#1758) Set status 200 as string, to standardize responses. --- src/Socket/groups.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socket/groups.ts b/src/Socket/groups.ts index 8706183..7bfbb8f 100644 --- a/src/Socket/groups.ts +++ b/src/Socket/groups.ts @@ -100,7 +100,7 @@ export const makeGroupsSocket = (config: SocketConfig) => { const node = getBinaryNodeChild(result, action) const participantsAffected = getBinaryNodeChildren(node!, 'participant') return participantsAffected.map(p => { - return { status: p.attrs.error || 200, jid: p.attrs.jid } + return { status: p.attrs.error || '200', jid: p.attrs.jid } }) }, groupUpdateDescription: async(jid: string, description?: string) => {