File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed
services/video-search/src/api Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -60,19 +60,24 @@ export default function initialize({
6060 1 ,
6161 ) ;
6262
63- log . debug ( `Found closest answer with score: ${ String ( result [ 1 ] ) } ` , {
64- location : `${ prefix } .search.getAnswer` ,
65- answer : result [ 0 ] ,
66- score : result [ 1 ] ,
67- } ) ;
68-
6963 if ( Array . isArray ( result ) && result . length > 0 ) {
70- log . debug ( `Found answer: ${ result [ 0 ] . metadata . answer } ` , {
71- location : `${ prefix } .search.getAnswer` ,
72- result : result [ 0 ] . metadata ,
73- } ) ;
74-
75- return result [ 0 ] . metadata ;
64+ log . debug (
65+ `Found closest answer with score: ${ String ( result [ 1 ] ) } ` ,
66+ {
67+ location : `${ prefix } .search.getAnswer` ,
68+ answer : result [ 0 ] ,
69+ score : result [ 1 ] ,
70+ } ,
71+ ) ;
72+
73+ if ( Array . isArray ( result ) && result . length > 0 ) {
74+ log . debug ( `Found answer: ${ result [ 0 ] . metadata . answer } ` , {
75+ location : `${ prefix } .search.getAnswer` ,
76+ result : result [ 0 ] . metadata ,
77+ } ) ;
78+
79+ return result [ 0 ] . metadata ;
80+ }
7681 }
7782 }
7883
You can’t perform that action at this time.
0 commit comments