Update group.js (#1758)

Set status 200 as string, to standardize responses.
This commit is contained in:
Lucas Maia
2022-06-20 07:14:24 -03:00
committed by GitHub
parent 27f53bfa51
commit 51e5572f82

View File

@@ -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) => {