2
0

🩹 (billing) Also reset custom limits when plan is cancelled

This commit is contained in:
Baptiste Arnaud
2023-03-31 10:16:02 +02:00
parent 3cfdb8179e
commit 2dae4160bd

View File

@ -141,6 +141,9 @@ const webhookHandler = async (req: NextApiRequest, res: NextApiResponse) => {
chatsLimitSecondEmailSentAt: null,
storageLimitFirstEmailSentAt: null,
storageLimitSecondEmailSentAt: null,
customChatsLimit: null,
customStorageLimit: null,
customSeatsLimit: null,
},
})
return res.send({ message: 'workspace downgraded in DB' })