Skip to content

Commit 581929b

Browse files
authored
v0.3.45: fixes for organization invites, custom tool execution
2 parents 0cf87e6 + 11d8188 commit 581929b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/sim/app/api/function/execute/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ export async function POST(req: NextRequest) {
585585
const useE2B =
586586
e2bEnabled &&
587587
!useLocalVM &&
588+
!isCustomTool &&
588589
(lang === CodeLanguage.JavaScript || lang === CodeLanguage.Python)
589590

590591
if (useE2B) {

apps/sim/app/api/organizations/[id]/invitations/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export async function POST(request: NextRequest, { params }: { params: Promise<{
339339
organizationEntry[0]?.name || 'organization',
340340
role,
341341
workspaceInvitationsWithNames,
342-
`${env.NEXT_PUBLIC_APP_URL}/invite/organization?id=${orgInvitation.id}`
342+
`${env.NEXT_PUBLIC_APP_URL}/invite/${orgInvitation.id}`
343343
)
344344

345345
emailResult = await sendEmail({
@@ -352,7 +352,7 @@ export async function POST(request: NextRequest, { params }: { params: Promise<{
352352
const emailHtml = await renderInvitationEmail(
353353
inviter[0]?.name || 'Someone',
354354
organizationEntry[0]?.name || 'organization',
355-
`${env.NEXT_PUBLIC_APP_URL}/invite/organization?id=${orgInvitation.id}`,
355+
`${env.NEXT_PUBLIC_APP_URL}/invite/${orgInvitation.id}`,
356356
email
357357
)
358358

0 commit comments

Comments
 (0)