Skip to content

Commit 2f12874

Browse files
committed
Numeric limit
1 parent 4c63a06 commit 2f12874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ app.get('/api/search', tokenOK, function(req, res) {
295295
query.where('annotation_categories'). in (req.query.annotation_categories);
296296
}
297297

298-
query.limit(req.query.limit);
298+
query.limit(Number(req.query.limit));
299299

300300
if (req.query.sidebar || req.query.context == "dashboard" || req.query.context == "search") {
301301
query.exec(function(err, annotations) {

0 commit comments

Comments
 (0)