bluejoyq

fixing error

......@@ -15,6 +15,7 @@ const cliConnection = async (req, res) => {
// clientData
try {
clientData = req.body.data;
console.log("------------------------------------------------------------",clientData);
if( !clientData.text.replace( /\s/g, '' ).length ) {
throw new Error( "client text empty" );
}
......
......@@ -2,8 +2,8 @@
"devToolsPort": 19002,
"expoServerPort": 19000,
"packagerPort": 19001,
"packagerPid": 24100,
"packagerPid": 10408,
"expoServerNgrokUrl": "https://ru-c66.bluejoy.searchguide.exp.direct",
"packagerNgrokUrl": "https://packager.ru-c66.bluejoy.searchguide.exp.direct",
"ngrokPid": 25536
"ngrokPid": 14692
}
......
......@@ -2,7 +2,7 @@ const axios = require('axios')
import filter from './filter';
import { SERVER_URL } from 'react-native-dotenv';
export const sendSearch = async(searchText) => {
export const sendSearch = async (searchText) => {
return new Promise((resolve,reject) => {
if(searchText=== "" || searchText.length > 30 ){
resolve({ "return_code" : -1, "error_code": "검색 단어를 확인해 주세요!" });
......