Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bluejoyq
/
searchGuide
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
bluejoyq
2019-12-05 19:39:12 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
55fda3dba5af5c62ad1f5d09321351fc4da05c3d
55fda3db
1 parent
61f27dd6
fixing~
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
api/apiRequest.js
api/cliConnection.js
api/apiRequest.js
View file @
55fda3d
...
...
@@ -119,7 +119,7 @@ apiRequest.DOCVECAPI = (searchResults, keywordText, index) => {
})
.
catch
(
err
=>
{
searchResults
[
index
].
confidence
=
0
;
resolve
(
);
throw
new
Error
(
err
);
});
});
};
...
...
api/cliConnection.js
View file @
55fda3d
...
...
@@ -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"
);
}
...
...
Please
register
or
login
to post a comment