Showing
2 changed files
with
1 additions
and
4 deletions
... | @@ -119,7 +119,7 @@ apiRequest.DOCVECAPI = (searchResults, keywordText, index) => { | ... | @@ -119,7 +119,7 @@ apiRequest.DOCVECAPI = (searchResults, keywordText, index) => { |
119 | }) | 119 | }) |
120 | .catch(err => { | 120 | .catch(err => { |
121 | searchResults[index].confidence = 0; | 121 | searchResults[index].confidence = 0; |
122 | - resolve(); | 122 | + throw new Error(err); |
123 | }); | 123 | }); |
124 | }); | 124 | }); |
125 | }; | 125 | }; | ... | ... |
... | @@ -15,9 +15,6 @@ const cliConnection = async (req, res) => { | ... | @@ -15,9 +15,6 @@ const cliConnection = async (req, res) => { |
15 | // clientData | 15 | // clientData |
16 | try { | 16 | try { |
17 | clientData = req.body.data; | 17 | clientData = req.body.data; |
18 | - console.log("------------------------------------------------------------",clientData); | ||
19 | - console.log(typeof(clientData)); | ||
20 | - console.log(clientData.text) | ||
21 | if( !clientData.text.replace( /\s/g, '' ).length ) { | 18 | if( !clientData.text.replace( /\s/g, '' ).length ) { |
22 | throw new Error( "client text empty" ); | 19 | throw new Error( "client text empty" ); |
23 | } | 20 | } | ... | ... |
-
Please register or login to post a comment