Skip to content

Commit

Permalink
[FIX] Searching by undefined via REST when using query param (#11657
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MarcosSpessatto authored and sampaiodiego committed Aug 20, 2018
1 parent d289d40 commit 809055b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-api/server/helpers/parseJsonQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RocketChat.API.helperMethods.set('parseJsonQuery', function _parseJsonQuery() {
}
}

let query;
let query = {};
if (this.queryParams.query) {
try {
query = JSON.parse(this.queryParams.query);
Expand Down

0 comments on commit 809055b

Please sign in to comment.