Skip to content

fix(api): add missing await on response.json() in getUserStatus, userInfo, and userData#1188

Open
Aryan-Verma-999 wants to merge 1 commit intoRocketChat:developfrom
Aryan-Verma-999:fix/add-missing-await-response-json
Open

fix(api): add missing await on response.json() in getUserStatus, userInfo, and userData#1188
Aryan-Verma-999 wants to merge 1 commit intoRocketChat:developfrom
Aryan-Verma-999:fix/add-missing-await-response-json

Conversation

@Aryan-Verma-999
Copy link

These three methods were missing await on response.json(), causing them to return a Promise instead of the parsed JSON body. This means callers silently receive unresolved promises, and any JSON parsing errors bypass the async error handling chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant