Skip to content

fix: persist tenant and toolDescription on typebot import#174

Merged
fjunqueira merged 1 commit intomainfrom
fix/import-tool-tenant-description
Mar 19, 2026
Merged

fix: persist tenant and toolDescription on typebot import#174
fjunqueira merged 1 commit intomainfrom
fix/import-tool-tenant-description

Conversation

@fjunqueira
Copy link
Copy Markdown

Summary

  • The import endpoint (importTypebot.ts) was not passing tenant and toolDescription to the Prisma create call
  • This caused TOOL type typebots to always have these fields as null after import, making it impossible to publish without manually re-filling them in the UI
  • Added both fields to the data object in prisma.typebot.create

Test plan

  • Import a TOOL typebot JSON that includes tenant and toolDescription fields
  • Verify the imported typebot shows the correct tenant and description in Settings > General
  • Verify the imported typebot can be published without manually filling those fields

🤖 Generated with Claude Code

The import endpoint was not including `tenant` and `toolDescription`
in the Prisma create call, causing TOOL type typebots to lose these
fields on import. This made it impossible to publish imported tools
without manually re-filling these fields in the UI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 19, 2026 13:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR corrige o endpoint de importação de typebots para que workflows do tipo TOOL mantenham os campos tenant e toolDescription ao serem persistidos no banco, evitando que a publicação falhe após o import.

Changes:

  • Inclui tenant no data do prisma.typebot.create durante o import.
  • Inclui toolDescription no data do prisma.typebot.create durante o import.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +166 to +167
tenant: migratedTypebot.tenant ?? undefined,
toolDescription: migratedTypebot.toolDescription ?? undefined,
@fjunqueira fjunqueira merged commit 32bbcf4 into main Mar 19, 2026
5 checks passed
@fjunqueira fjunqueira deleted the fix/import-tool-tenant-description branch March 19, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants