2
0

🐛 Remove delete result cascade

This commit is contained in:
Baptiste Arnaud
2022-09-25 20:16:08 +02:00
committed by Baptiste Arnaud
parent 30dff2d5d7
commit 3c803b1345
11 changed files with 396 additions and 180 deletions

View File

@ -76,7 +76,6 @@ const checkStorageLimit = async (typebotId: string) => {
})
if (!typebot?.workspace) throw new Error('Workspace not found')
const { workspace } = typebot
console.log(typebot.workspaceId)
const {
_sum: { storageUsed: totalStorageUsed },
} = await prisma.answer.aggregate({