Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarw committed Sep 14, 2018
1 parent f9629fc commit d8b3b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default ({config, db}) => function (req, res, body) {
throw new Error('Invalid / inaccessible index name given in the URL. Please do use following URL format: /api/catalog/<index_name>/_search')
}

if (urlSegments[urlSegments.length - 1] !== '_search') {
if (urlSegments[urlSegments.length - 1].indexOf('_search') !== 0) {
throw new Error('Please do use following URL format: /api/catalog/<index_name>/_search')
}
}
Expand Down

0 comments on commit d8b3b28

Please sign in to comment.