diff options
author | bob <bcz@cs.brown.edu> | 2019-12-19 16:27:13 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-12-19 16:27:13 -0500 |
commit | 306ea362cad253764bc632d6274ae71a45ecd85c (patch) | |
tree | dd1e01ffe5828be5a8b36b4e3dd4798a2cf5137d /src/client/util/SearchUtil.ts | |
parent | 8907ea70352d07c80233ff4c3e06c9c543c5be83 (diff) |
compiler fixes. fix for text box titles on templates
Diffstat (limited to 'src/client/util/SearchUtil.ts')
-rw-r--r-- | src/client/util/SearchUtil.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts index 4f6211d94..8ff54d052 100644 --- a/src/client/util/SearchUtil.ts +++ b/src/client/util/SearchUtil.ts @@ -34,8 +34,8 @@ export namespace SearchUtil { export function Search(query: string, returnDocs: false, options?: SearchParams): Promise<IdSearchResult>; export async function Search(query: string, returnDocs: boolean, options: SearchParams = {}) { query = query || "*"; //If we just have a filter query, search for * as the query - let rpquery = Utils.prepend("/search"); - let gotten = await rp.get(rpquery, { qs: { ...options, q: query } }); + const rpquery = Utils.prepend("/search"); + const gotten = await rp.get(rpquery, { qs: { ...options, q: query } }); const result: IdSearchResult = gotten.startsWith("<") ? { ids: [], docs: [], numFound: 0, lines: [] } : JSON.parse(gotten); if (!returnDocs) { return result; |