2
0

🚸 (bot) disable auto focus on mobile

This commit is contained in:
Baptiste Arnaud
2022-10-12 08:43:30 +02:00
parent b46d35214d
commit 40d2db59dc
2 changed files with 7 additions and 6 deletions

View File

@ -19,11 +19,11 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const answersCounts: { groupId: string; totalAnswers: number }[] =
await Promise.all(
(typebot.publishedTypebot as unknown as PublicTypebot).groups.map(
async (block) => {
async (group) => {
const totalAnswers = await prisma.answer.count({
where: { groupId: block.id },
where: { groupId: group.id },
})
return { groupId: block.id, totalAnswers }
return { groupId: group.id, totalAnswers }
}
)
)