2
0

🚑 Disable usage check on viewer

This commit is contained in:
Baptiste Arnaud
2022-12-06 17:40:09 +01:00
parent dcec1f0a5c
commit 855a2856c8
2 changed files with 4 additions and 4 deletions

View File

@ -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
@ -53,7 +53,7 @@ const handler = async (
return res.status(200).send({
presignedUrl,
hasReachedStorageLimit,
hasReachedStorageLimit: false,
})
}
return methodNotAllowed(res)

View File

@ -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)