Skip to content

Commit

Permalink
🚑 Disable usage check on viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 7, 2022
1 parent dcec1f0 commit 855a285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const handler = async (
const typebotId = req.query.typebotId as string
const blockId = req.query.blockId as string
if (!filePath) return badRequest(res, 'Missing filePath or fileType')
const hasReachedStorageLimit = await checkStorageLimit(typebotId)
// const hasReachedStorageLimit = await checkStorageLimit(typebotId)
const typebot = (await prisma.publicTypebot.findFirst({
where: { typebotId },
})) as unknown as PublicTypebot
Expand All @@ -53,7 +53,7 @@ const handler = async (

return res.status(200).send({
presignedUrl,
hasReachedStorageLimit,
hasReachedStorageLimit: false,
})
}
return methodNotAllowed(res)
Expand Down
4 changes: 2 additions & 2 deletions apps/viewer/src/pages/api/typebots/[typebotId]/results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
},
},
})
const hasReachedLimit = await checkChatsUsage(result.typebot.workspace)
res.send({ result, hasReachedLimit })
// const hasReachedLimit = await checkChatsUsage(result.typebot.workspace)
res.send({ result, hasReachedLimit: false })
return
}
methodNotAllowed(res)
Expand Down

0 comments on commit 855a285

Please sign in to comment.