nodebb-plugin-dbsearch 7.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/dbsearch.js +1 -1
  2. package/package.json +1 -1
package/lib/dbsearch.js CHANGED
@@ -249,7 +249,7 @@ search.filterMessagingSearchMessages = async function (data) {
249
249
  if (!data || !data.content) {
250
250
  return data;
251
251
  }
252
- const limit = 100;
252
+ const limit = parseInt(data.limit, 10) > 0 ? parseInt(data.limit, 10) : 100;
253
253
  const query = {};
254
254
  if (data.hasOwnProperty('roomId') && data.roomId) {
255
255
  query.roomId = data.roomId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-dbsearch",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "A Plugin that lets users search posts and topics",
5
5
  "main": "index.js",
6
6
  "repository": {