bluejoyq

fixing~

......@@ -119,7 +119,7 @@ apiRequest.DOCVECAPI = (searchResults, keywordText, index) => {
})
.catch(err => {
searchResults[index].confidence = 0;
resolve();
throw new Error(err);
});
});
};
......
......@@ -15,9 +15,6 @@ const cliConnection = async (req, res) => {
// clientData
try {
clientData = req.body.data;
console.log("------------------------------------------------------------",clientData);
console.log(typeof(clientData));
console.log(clientData.text)
if( !clientData.text.replace( /\s/g, '' ).length ) {
throw new Error( "client text empty" );
}
......