Skip to content

Commit 0fb0844

Browse files
committed
fix(resend): drop unreachable send error branch, relabel unsubscribed default
1 parent f64b26a commit 0fb0844

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

apps/sim/blocks/blocks/resend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Return ONLY the email body - no explanations, no extra text.`,
221221
title: 'Unsubscribed',
222222
type: 'dropdown',
223223
options: [
224-
{ label: "Don't Change", id: '' },
224+
{ label: 'Use Default', id: '' },
225225
{ label: 'No', id: 'false' },
226226
{ label: 'Yes', id: 'true' },
227227
],

apps/sim/tools/resend/send.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,11 @@ export const resendSendTool: ToolConfig<MailSendParams, MailSendResult> = {
103103

104104
transformResponse: async (response: Response, params): Promise<MailSendResult> => {
105105
const result = await response.json()
106-
const sent = result.success === true
107106

108107
return {
109-
success: sent,
110-
...(sent ? {} : { error: result.message || 'Failed to send email' }),
108+
success: true,
111109
output: {
112-
success: sent,
110+
success: true,
113111
id: result.data?.id || '',
114112
to: params?.to || '',
115113
subject: params?.subject || '',

0 commit comments

Comments
 (0)