Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -16,6 +16,8 @@ const cliConnection = async (req, res) => { | ... | @@ -16,6 +16,8 @@ const cliConnection = async (req, res) => { |
| 16 | try { | 16 | try { |
| 17 | clientData = req.body.data; | 17 | clientData = req.body.data; |
| 18 | console.log("------------------------------------------------------------",clientData); | 18 | console.log("------------------------------------------------------------",clientData); |
| 19 | + console.log(typeof(clientData)); | ||
| 20 | + console.log(clientData.text) | ||
| 19 | if( !clientData.text.replace( /\s/g, '' ).length ) { | 21 | if( !clientData.text.replace( /\s/g, '' ).length ) { |
| 20 | throw new Error( "client text empty" ); | 22 | throw new Error( "client text empty" ); |
| 21 | } | 23 | } | ... | ... |
-
Please register or login to post a comment