fix: follow effect recovery conventions
This commit is contained in:
1 parent
dbbe349219
commit
ecbafb6d5e
1 file changed
+4
-3
@@ -195,9 +195,10 @@ export const forwardVoiceTranscription = Effect.fn("voiceTranscription.forward")
|
||||
}),
|
||||
),
|
||||
Effect.timeout("2 minutes"),
|
||||
Effect.catchTag("TimeoutError", (cause) =>
|
||||
Effect.fail(new TranscriptionRequestError({ provider: input.provider, cause })),
|
||||
),
|
||||
Effect.catchTags({
|
||||
TimeoutError: (cause) =>
|
||||
Effect.fail(new TranscriptionRequestError({ provider: input.provider, cause })),
|
||||
}),
|
||||
);
|
||||
return payload.text.trim();
|
||||
});
|
||||
Reference in new issue
Block a user