Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
fix(search): fix json response
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimallea committed Mar 13, 2021
1 parent 83206b8 commit 333aadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imgur.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ imgur.search = async (query, options) => {
delete params.queryStr;

const json = await imgur._imgurRequest('search', queryStr);
return { data: json, params };
return { ...json, params };
}
};

Expand Down

0 comments on commit 333aadd

Please sign in to comment.