feat(editor): ✨ Custom icon on typebot
This commit is contained in:
@ -46,7 +46,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
folderId,
|
||||
},
|
||||
orderBy: { createdAt: 'desc' },
|
||||
select: { name: true, publishedTypebotId: true, id: true },
|
||||
select: { name: true, publishedTypebotId: true, id: true, icon: true },
|
||||
})
|
||||
return res.send({ typebots })
|
||||
}
|
||||
|
@ -18,7 +18,14 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
const sharedTypebots = await prisma.collaboratorsOnTypebots.findMany({
|
||||
where: { userId: user.id },
|
||||
include: {
|
||||
typebot: { select: { name: true, publishedTypebotId: true, id: true } },
|
||||
typebot: {
|
||||
select: {
|
||||
name: true,
|
||||
publishedTypebotId: true,
|
||||
id: true,
|
||||
icon: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
return res.send({
|
||||
|
Reference in New Issue
Block a user