🩹 (billing) Also reset custom limits when plan is cancelled
This commit is contained in:
@@ -141,6 +141,9 @@ const webhookHandler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
chatsLimitSecondEmailSentAt: null,
|
chatsLimitSecondEmailSentAt: null,
|
||||||
storageLimitFirstEmailSentAt: null,
|
storageLimitFirstEmailSentAt: null,
|
||||||
storageLimitSecondEmailSentAt: null,
|
storageLimitSecondEmailSentAt: null,
|
||||||
|
customChatsLimit: null,
|
||||||
|
customStorageLimit: null,
|
||||||
|
customSeatsLimit: null,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
return res.send({ message: 'workspace downgraded in DB' })
|
return res.send({ message: 'workspace downgraded in DB' })
|
||||||
|
|||||||
Reference in New Issue
Block a user