File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
voice/src/functions/deepgram Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ async function scheduleWorkflow() {
88 const runId = await restack . schedule ( {
99 workflowName : "example" ,
1010 workflowId : `${ Date . now ( ) } -exampleWorkflow` ,
11- input : [
12- {
13- name : "test" ,
14- } ,
15- ] ,
11+ input : {
12+ name : "test" ,
13+ } ,
1614 } ) ;
1715
1816 const result = await restack . getResult ( { workflowId, runId } ) ;
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ export async function deepgramListen({
4040
4141 const results = response . result ?. results ;
4242
43- log . info ( "deepgramListen results: " , {
43+ log . debug ( "deepgramListen results: " , {
4444 results : results ,
4545 } ) ;
4646
47- const transcript = results ?. channels ?. [ 0 ] . alternatives ?. [ 0 ] . transcript ;
47+ const transcript = results ?. channels ?. [ 0 ] ? .alternatives ?. [ 0 ] ? .transcript ;
4848
4949 log . info ( "deepgramListen transcript: " , {
5050 transcript : transcript ,
You can’t perform that action at this time.
0 commit comments