File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/trigger-sdk/src/v3 Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ export type { InferStreamType, InferInputStreamType };
686686 * id: "my-task",
687687 * run: async (payload) => {
688688 * // Wait for the next approval
689- * const data = await approval.once();
689+ * const data = await approval.once().unwrap() ;
690690 * console.log(data.approved, data.reviewer);
691691 * },
692692 * });
@@ -783,12 +783,12 @@ function input<TData>(opts: { id: string }): RealtimeDefinedInputStream<TData> {
783783 const data =
784784 waitResult . output !== undefined
785785 ? await conditionallyImportAndParsePacket (
786- {
787- data : waitResult . output ,
788- dataType : waitResult . outputType ?? "application/json" ,
789- } ,
790- apiClient
791- )
786+ {
787+ data : waitResult . output ,
788+ dataType : waitResult . outputType ?? "application/json" ,
789+ } ,
790+ apiClient
791+ )
792792 : undefined ;
793793
794794 if ( waitResult . ok ) {
You can’t perform that action at this time.
0 commit comments