🐛 (usage) Fix storage limit check
This commit is contained in:
committed by
Baptiste Arnaud
parent
1063429275
commit
1e26703ad4
@ -94,7 +94,7 @@ const checkStorageLimit = async (typebotId: string) => {
|
||||
if (!totalStorageUsed) return false
|
||||
const hasSentFirstEmail = workspace.storageLimitFirstEmailSentAt !== null
|
||||
const hasSentSecondEmail = workspace.storageLimitSecondEmailSentAt !== null
|
||||
const storageLimit = getStorageLimit(typebot.workspace)
|
||||
const storageLimit = getStorageLimit(typebot.workspace) * 1024 * 1024 * 1024
|
||||
if (
|
||||
totalStorageUsed >= storageLimit * LIMIT_EMAIL_TRIGGER_PERCENT &&
|
||||
!hasSentFirstEmail &&
|
||||
|
Reference in New Issue
Block a user