2
0

feat(engine): Link typebot step

This commit is contained in:
Baptiste Arnaud
2022-03-09 15:12:00 +01:00
parent 1bcc8aee10
commit 7e61ab19eb
61 changed files with 1272 additions and 245 deletions

View File

@ -44,7 +44,7 @@ const getTypebotFromPublicId = async (publicId?: string) => {
where: { publicId },
})
if (isNotDefined(typebot)) return null
return omit(typebot as PublicTypebot, 'createdAt', 'updatedAt')
return omit(typebot as unknown as PublicTypebot, 'createdAt', 'updatedAt')
}
const getTypebotFromCustomDomain = async (customDomain: string) => {
@ -52,7 +52,7 @@ const getTypebotFromCustomDomain = async (customDomain: string) => {
where: { customDomain },
})
if (isNotDefined(typebot)) return null
return omit(typebot as PublicTypebot, 'createdAt', 'updatedAt')
return omit(typebot as unknown as PublicTypebot, 'createdAt', 'updatedAt')
}
const App = ({ typebot, ...props }: TypebotPageProps) =>