return early when receiving a message for a user on free plan
This commit is contained in:
parent
730030f6f1
commit
a4859137fe
@ -63,6 +63,7 @@ export default async function incomingMessageHandler(req: BlitzApiRequest, res:
|
|||||||
// accept the webhook but don't store incoming message
|
// accept the webhook but don't store incoming message
|
||||||
// because the organization is on the free plan
|
// because the organization is on the free plan
|
||||||
res.status(200).end();
|
res.status(200).end();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const phoneNumber = phoneNumbersWithActiveSub.find((phoneNumber) => {
|
const phoneNumber = phoneNumbersWithActiveSub.find((phoneNumber) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user