📦 Update cuid to cuid2

This commit is contained in:
Baptiste Arnaud
2023-02-10 15:06:02 +01:00
parent 2dbf0fb848
commit 51f76700b2
77 changed files with 254 additions and 250 deletions

View File

@@ -1,4 +1,4 @@
import cuid from 'cuid'
import { createId } from '@paralleldrive/cuid2'
import {
defaultSettings,
defaultTheme,
@@ -33,8 +33,8 @@ export const parseNewTypebot = ({
ownerAvatarUrl?: string
isBrandingEnabled?: boolean
}): NewTypebotProps => {
const startGroupId = cuid()
const startBlockId = cuid()
const startGroupId = createId()
const startBlockId = createId()
const startBlock: StartBlock = {
groupId: startGroupId,
id: startBlockId,