feat(results): remove incomplete results limitation

This commit is contained in:
Baptiste Arnaud
2022-07-20 08:38:10 +02:00
parent bd0d995c2c
commit 7d0a526736
2 changed files with 1 additions and 8 deletions

View File

@@ -5,7 +5,6 @@ import { NextApiRequest, NextApiResponse } from 'next'
import { canReadTypebot, canWriteTypebot } from 'services/api/dbRules'
import { deleteFiles } from 'services/api/storage'
import { getAuthenticatedUser } from 'services/api/utils'
import { isFreePlan } from 'services/workspace'
import {
badRequest,
forbidden,
@@ -38,7 +37,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
where: {
typebot: canReadTypebot(typebotId, user),
answers: { some: {} },
isCompleted: isFreePlan(workspace) ? true : undefined,
},
orderBy: {
createdAt: 'desc',