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:22:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
61f27dd6f3804fbfb70f952862186ad2aaa2f385
61f27dd6
1 parent
b3a9b104
fixing error
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
api/cliConnection.js
api/cliConnection.js
View file @
61f27dd
...
...
@@ -16,6 +16,8 @@ const cliConnection = async (req, res) => {
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