Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6073972

Browse files
committed
fix example input
Former-commit-id: 0060de5 Former-commit-id: 9c3bfb4fba487e201d1fa0374085e1375dee7711
1 parent 9d66834 commit 6073972

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

examples/hello/scheduleWorkflow.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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 });

examples/voice/src/functions/deepgram/listen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)