[Search] Fix maxResults vs maxNumber

Typo fix in generic search. #91.
This commit is contained in:
slhale 2015-08-28 15:34:17 -07:00
parent e4639091e5
commit 2a19945870

View File

@ -139,9 +139,9 @@
}
});
// Truncate results if there are more than maxResults
if (message.total > data.maxResults) {
message.results = results.slice(0, data.maxResults);
// Truncate results if there are more than maxNumber
if (message.total > data.maxNumber) {
message.results = results.slice(0, data.maxNumber);
} else {
message.results = results;
}