Toggle navigation
Toggle navigation
This project
Loading...
Sign in
방승일
/
mamuri-bot
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
유명현
2022-05-30 21:55:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
128c7e26c1b7310e544caf4bb8040e248bc09044
128c7e26
1 parent
9c0e28cf
FIX: bunjang null exception
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
server/chatbot/search/marketSearch.js
server/chatbot/search/marketSearch.js
View file @
128c7e2
...
...
@@ -7,19 +7,22 @@ const marketMultiSearch = (keyword) => {
const
result
=
[];
return
new
Promise
((
resolve
,
reject
)
=>
{
daangnMultiSearch
(
keyword
).
then
((
res
)
=>
{
if
(
res
!==
undefined
)
{
console
.
log
(
`daangn:
${
res
}
`
);
if
(
res
!==
undefined
&&
res
!==
null
)
{
for
(
let
i
=
0
;
i
<
res
.
length
&&
i
<
4
;
i
++
)
{
result
.
push
(
res
[
i
]);
}
}
bunjangMultiSearch
(
keyword
).
then
((
res
)
=>
{
if
(
res
!==
undefined
)
{
console
.
log
(
`bunjang:
${
res
}
`
);
if
(
res
!==
undefined
&&
res
!==
null
)
{
for
(
let
i
=
0
;
i
<
res
.
length
&&
i
<
4
;
i
++
)
{
result
.
push
(
res
[
i
]);
}
}
joongnaMultiSearch
(
keyword
).
then
((
res
)
=>
{
if
(
res
!==
undefined
)
{
console
.
log
(
`joongna:
${
res
}
`
);
if
(
res
!==
undefined
&&
res
!==
null
)
{
for
(
let
i
=
0
;
i
<
res
.
length
&&
i
<
4
;
i
++
)
{
result
.
push
(
res
[
i
]);
}
...
...
Please
register
or
login
to post a comment